Commit Graph

14 Commits

Author SHA1 Message Date
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
László Monda
e2b2f6c5a9 Rename key action fields. 2017-01-03 01:35:33 +01:00
László Monda
f09cc2d89c Deduplicate the body of clearKeymasks() and rename it to clearKeymask() 2017-01-03 01:27:00 +01:00
László Monda
46891f6a7f Deduplicate the memcpy() calls of HandleKeyboardEvents() 2017-01-03 01:22:04 +01:00
László Monda
c2e25b8007 Deduplicate the gist of HandleKeyboardEvents() 2017-01-03 01:20:20 +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
c1a6eaffde Don't inline getKeycode(). Do some coding style fixes. 2017-01-02 23:09:22 +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
László Monda
cda497e5ac Write key instead of k. 2017-01-02 21:14:44 +01:00
László Monda
844a3609fc Rename key_toggled_on() to hasKeyPressed(), key_is_pressed() to isKeyPressed(), and key_toggled_off() to hasKeyReleased() 2017-01-02 18:04:44 +01:00
László Monda
3331192cfa Simplify the expression of isWheelAction. Add missing braces. 2017-01-02 17:56:52 +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