summaryrefslogtreecommitdiff
path: root/io.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-11-25 20:32:20 -0800
committerMichael Pavone <pavone@retrodev.com>2015-11-25 20:32:20 -0800
commit6038573c6b4a291e60fe43f3c0d01c9ed8d12b10 (patch)
tree7e80c096239b62ed0beecda893dad99f862cfdee /io.h
parentdeda4904e02a1884c8659bb125d57a32aa4f9e18 (diff)
WIP support for mega mouse
Diffstat (limited to 'io.h')
-rw-r--r--io.h9
1 files changed, 9 insertions, 0 deletions
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_