Commit Graph

23 Commits

Author SHA1 Message Date
László Monda
533ee5d228 Map test actions to the current keymap. 2017-04-28 16:36:43 +02:00
László Monda
aaaeab0498 Add test actions. 2017-04-28 16:24:19 +02:00
László Monda
117332bb67 Use consumer keycodes for media keys so they work across platforms and not only on Linux. 2017-03-04 03:40:50 +01:00
László Monda
fdb13d3a7e Use KEY_ACTION_KEYSTROKE instead of KEY_ACTION_{BASIC,MEDIA}_KEYSTROKE. Add keystroke_type_t. 2017-03-03 22:49:20 +01:00
László Monda
d2e3d6becf Rename .basicKeystroke back to .keystroke 2017-03-03 22:36:17 +01:00
László Monda
cc2c06f497 Rename a couple of members of key_action_t to be more intuitive. 2017-03-03 21:59:28 +01:00
László Monda
b6cc59125d Remove __unused_bits fields and outdated comments. 2017-03-03 21:51:11 +01:00
László Monda
c887b5e309 Add another HID interface using the consumer HID class for media keys. Resolves #32. 2017-03-03 20:21:05 +01:00
László Monda
d12dc7d8a0 Don't expose ProcessMouseAction() and rename it to processMouseAction() 2017-02-26 02:41:48 +01:00
László Monda
a3f8027758 Rename HandleMouseKey() to ProcessMouseAction() 2017-02-26 02:06:36 +01:00
László Monda
878cedd31c Rename HandleKeyboardEvents() to UpdateActiveUsbReports(). 2017-02-26 02:01:16 +01:00
László Monda
476a2fb89a Inline isKeyPressed(). Rename key to action within HandleMouseKey() and a few other identifiers to make the code more intuitive. 2017-02-26 01:34:38 +01:00
László Monda
7eec8281ce Remove arguments from HandleKeyboardEvents. 2017-02-26 00:44:43 +01:00
László Monda
0f70d1eb8e Resolve compiler warnings. 2017-01-09 20:39:25 +01:00
László Monda
a79a2c7365 Rename default_layout.c to current_keymap.c and add current_keymap.h 2017-01-09 20:25:35 +01:00
Gergely Nagy
00214eac7e action.h: Rename switchKeymap.layer to switchKeymap.keymap
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2017-01-06 08:09:03 +01:00
Gergely Nagy
901814be2f action.h: Add keystroke.longpress and switchLayer.isToggle
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2017-01-06 08:09:03 +01:00
László Monda
e2b2f6c5a9 Rename key action fields. 2017-01-03 01:35:33 +01:00
László Monda
2457f3b0e0 Add CurrentKeyStates and PreviousKeyStates globals and use them across the whole codebase. 2017-01-03 01:09:00 +01:00
László Monda
0c404f324d Rename a couple of key action related type names and enum values. 2017-01-02 21:25:38 +01:00
Gergely Nagy
5e48da5a7a Code cleanup
Move a few defines from action.c to action.h.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2016-12-15 18:37:30 +01:00
Gergely Nagy
39dd0df58c Move keyboard event handling into action.c
Since keyboard_layout.[ch] has gained more features, and handles more than just
filling out the keyboard report, move it to action.[ch] instead. I see no sane
way to separate the keyboard and mouse report filling, unless we want to loop
over key states twice, hence them being in the same file.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2016-12-15 18:32:28 +01:00
László Monda
11401a6448 Make less use of linked files and folders for better long-term maintainability by moving the source files under the newly created src directory and only linking that directory to the workspace. 2016-09-26 08:45:59 +02:00