From 53d1d684d1b83c0c8404379d1ad1079dd11320ae Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Thu, 27 Feb 2014 14:41:12 -0500 Subject: [PATCH] mouse button clicking ends warping --- ArduinoKeyboard.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/ArduinoKeyboard.ino b/ArduinoKeyboard.ino index c742041b..cca968ef 100644 --- a/ArduinoKeyboard.ino +++ b/ArduinoKeyboard.ino @@ -595,6 +595,7 @@ void handle_synthetic_key_press(byte switchState, Key mappedKey) { } else if (mappedKey.rawKey == KEY_MOUSE_BTN_L || mappedKey.rawKey == KEY_MOUSE_BTN_M || mappedKey.rawKey == KEY_MOUSE_BTN_R) { + end_warping(); if (key_toggled_on (switchState)) { Mouse.press(mappedKey.rawKey); } else if (key_is_pressed(switchState)) {