summaryrefslogtreecommitdiff
path: root/io.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-11-28 21:27:21 -0800
committerMichael Pavone <pavone@retrodev.com>2015-11-28 21:27:21 -0800
commit48bd3f0012bd5f683e19e2fa2b4a3e52b6e6de27 (patch)
tree3bd5fa9de844f0147fffef140f25f864a15b6e38 /io.h
parent8f0722a1aa6442ff4b30e59371d844de7a370457 (diff)
Mega mouse support is mostly done
Diffstat (limited to 'io.h')
-rw-r--r--io.h6
1 files changed, 5 insertions, 1 deletions
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_