diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-11-25 20:32:20 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-11-25 20:32:20 -0800 |
commit | 6038573c6b4a291e60fe43f3c0d01c9ed8d12b10 (patch) | |
tree | 7e80c096239b62ed0beecda893dad99f862cfdee /io.h | |
parent | deda4904e02a1884c8659bb125d57a32aa4f9e18 (diff) |
WIP support for mega mouse
Diffstat (limited to 'io.h')
-rw-r--r-- | io.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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_ |