summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-01-24 23:16:21 -0800
committerMichael Pavone <pavone@retrodev.com>2017-01-24 23:16:21 -0800
commita9ebebf22235360a452792d610fc086f8890f854 (patch)
tree054522de4251ca83ed606a0cd4406a3def7ce3b8 /io.c
parent3bc43c2527b606b7d3c6be0324e11f09e143394a (diff)
Minor cleanup to handle_mouse_moved
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}
}