the function moves the mouse

pull/18/head
Jesse Vincent 9 years ago
parent d5ebc7c5ad
commit 4dc59ecf94

@ -49,7 +49,7 @@ void loop() {
LEDs.update_leds(temporary_keymap); LEDs.update_leds(temporary_keymap);
Keyboard.sendReport(); Keyboard.sendReport();
Keyboard.releaseAll(); Keyboard.releaseAll();
handle_mouse_movement(x, y); move_mouse(x, y);
} }

@ -89,7 +89,7 @@ double mouse_accel (double cycles) {
return accel; return accel;
} }
void handle_mouse_movement( char x, char y) { void move_mouse( char x, char y) {
if (x != 0 || y != 0) { if (x != 0 || y != 0) {
mouseActiveForCycles++; mouseActiveForCycles++;

@ -5,7 +5,7 @@
double mouse_accel (double cycles); double mouse_accel (double cycles);
void handle_mouse_key_press(byte switchState, Key mappedKey, char &x, char &y); 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 begin_warping();
void end_warping(); void end_warping();
void warp_mouse(Key key); void warp_mouse(Key key);

Loading…
Cancel
Save