From a9ebebf22235360a452792d610fc086f8890f854 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Tue, 24 Jan 2017 23:16:21 -0800 Subject: Minor cleanup to handle_mouse_moved --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io.c') diff --git a/io.c b/io.c index 6b459a8..bde946c 100644 --- a/io.c +++ b/io.c @@ -476,7 +476,6 @@ void handle_mouse_moved(int mouse, uint16_t x, uint16_t y, int16_t deltax, int16 if (mouse >= MAX_MICE || !mice[mouse].motion_port) { return; } - //TODO: relative mode switch(current_io->mouse_mode) { case MOUSE_ABSOLUTE: { @@ -497,6 +496,7 @@ void handle_mouse_moved(int mouse, uint16_t x, uint16_t y, int16_t deltax, int16 mice[mouse].motion_port->device.mouse.cur_x += deltax; mice[mouse].motion_port->device.mouse.cur_y += deltay; } + break; } } } -- cgit v1.2.3