Commit Graph

5 Commits

Author SHA1 Message Date
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