From 48bd3f0012bd5f683e19e2fa2b4a3e52b6e6de27 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sat, 28 Nov 2015 21:27:21 -0800 Subject: Mega mouse support is mostly done --- io.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'io.h') diff --git a/io.h b/io.h index e8501c1..964dee2 100644 --- a/io.h +++ b/io.h @@ -38,8 +38,10 @@ typedef struct { uint16_t last_read_y; uint16_t cur_x; uint16_t cur_y; + int16_t delta_x; + int16_t delta_y; uint8_t tr_counter; - uint8_t state; + uint8_t mouse_num; } mouse; } device; uint8_t output; @@ -76,6 +78,8 @@ 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); +void handle_mousedown(int mouse, int button); +void handle_mouseup(int mouse, int button); #endif //IO_H_ -- cgit v1.2.3