Use KEY_ACTION_KEYSTROKE instead of KEY_ACTION_{BASIC,MEDIA}_KEYSTROKE. Add keystroke_type_t.

This commit is contained in:
László Monda
2017-03-03 22:49:20 +01:00
parent d2e3d6becf
commit fdb13d3a7e
4 changed files with 152 additions and 142 deletions

View File

@@ -106,7 +106,7 @@ static void processNoneAction(key_action_t *action, serialized_buffer_t *buffer)
static void processKeyStrokeAction(key_action_t *action, uint8_t actionType, serialized_buffer_t *buffer) {
uint8_t flags = actionType - 1;
action->type = KEY_ACTION_BASIC_KEYSTROKE;
action->type = KEY_ACTION_KEYSTROKE;
if (flags & HAS_SCANCODE) {
action->keystroke.scancode = readUInt8(buffer);