From f2222c8dbd9a62a4ed636fa199b36a8fc465520f Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sun, 31 Jan 2016 18:03:30 -0800 Subject: [PATCH] Typo fix. we were trying to do boolean logic, not bitwise math --- key_events.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/key_events.cpp b/key_events.cpp index 8a5c14f0..2c0d563b 100644 --- a/key_events.cpp +++ b/key_events.cpp @@ -1,7 +1,7 @@ #include "key_events.h" void handle_synthetic_key_event(byte switchState, Key mappedKey) { - if (mappedKey.flags & IS_MOUSE_KEY & ! (mappedKey.rawKey & MOUSE_WARP )) { + if (mappedKey.flags & IS_MOUSE_KEY && !( mappedKey.rawKey & MOUSE_WARP) ) { handle_mouse_key_event(switchState, mappedKey); } else if (mappedKey.rawKey == KEY_MOUSE_BTN_L || mappedKey.rawKey == KEY_MOUSE_BTN_M