From 4dc59ecf949d8dcb59046693289c6e5c7672db81 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Tue, 26 Jan 2016 22:57:58 -0800 Subject: [PATCH] the function moves the mouse --- KeyboardioFirmware.ino | 2 +- mouse_movement.cpp | 2 +- mouse_movement.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/KeyboardioFirmware.ino b/KeyboardioFirmware.ino index 18b261a9..ecc16a07 100644 --- a/KeyboardioFirmware.ino +++ b/KeyboardioFirmware.ino @@ -49,7 +49,7 @@ void loop() { LEDs.update_leds(temporary_keymap); Keyboard.sendReport(); Keyboard.releaseAll(); - handle_mouse_movement(x, y); + move_mouse(x, y); } diff --git a/mouse_movement.cpp b/mouse_movement.cpp index 5f5f327a..3518ce23 100644 --- a/mouse_movement.cpp +++ b/mouse_movement.cpp @@ -89,7 +89,7 @@ double mouse_accel (double cycles) { return accel; } -void handle_mouse_movement( char x, char y) { +void move_mouse( char x, char y) { if (x != 0 || y != 0) { mouseActiveForCycles++; diff --git a/mouse_movement.h b/mouse_movement.h index e119f4ee..a404b5a9 100644 --- a/mouse_movement.h +++ b/mouse_movement.h @@ -5,7 +5,7 @@ double mouse_accel (double cycles); void handle_mouse_key_press(byte switchState, Key mappedKey, char &x, char &y); -void handle_mouse_movement( char x, char y); +void move_mouse( char x, char y); void begin_warping(); void end_warping(); void warp_mouse(Key key);