From 6038573c6b4a291e60fe43f3c0d01c9ed8d12b10 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Wed, 25 Nov 2015 20:32:20 -0800 Subject: WIP support for mega mouse --- io.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'io.h') diff --git a/io.h b/io.h index f4af306..e8501c1 100644 --- a/io.h +++ b/io.h @@ -33,6 +33,14 @@ typedef struct { int data_fd; int listen_fd; } stream; + struct { + uint16_t last_read_x; + uint16_t last_read_y; + uint16_t cur_x; + uint16_t cur_y; + uint8_t tr_counter; + uint8_t state; + } mouse; } device; uint8_t output; uint8_t control; @@ -67,6 +75,7 @@ void handle_keyup(int keycode); void handle_joydown(int joystick, int button); void handle_joyup(int joystick, int button); void handle_joy_dpad(int joystick, int dpad, uint8_t state); +void handle_mouse_moved(int mouse, uint16_t x, uint16_t y); #endif //IO_H_ -- cgit v1.2.3