summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-05-29 19:21:38 +0200
committerGitHub <noreply@github.com>2017-05-29 19:21:38 +0200
commitb6c60333e48e3ed77d5e8a21a139ce9955977559 (patch)
tree85fed418d59825aba744d2d5b9e0c6710187bf41
parent0c351fa98bff6a2e9d3ff30cc19d6b0782b85a62 (diff)
downloadqmk_firmware-b6c60333e48e3ed77d5e8a21a139ce9955977559.tar.gz
qmk_firmware-b6c60333e48e3ed77d5e8a21a139ce9955977559.tar.xz
Re-enable mouse buttons
-rw-r--r--tmk_core/common/action.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c
index f73b0fe80..cffc0b9eb 100644
--- a/tmk_core/common/action.c
+++ b/tmk_core/common/action.c
@@ -324,9 +324,10 @@ void process_action(keyrecord_t *record, action_t action)
tp_buttons |= (1<<2);
break;
default:
- mousekey_on(action.key.code);
- mousekey_send();
+ break;
}
+ mousekey_on(action.key.code);
+ mousekey_send();
} else {
switch (action.key.code) {
case KC_MS_BTN1:
@@ -339,9 +340,10 @@ void process_action(keyrecord_t *record, action_t action)
tp_buttons &= ~(1<<2);
break;
default:
- mousekey_off(action.key.code);
- mousekey_send();
+ break;
}
+ mousekey_off(action.key.code);
+ mousekey_send();
}
break;
#endif