Mercurial > repos > blastem
comparison io.h @ 907:b5d35222047e
Mega mouse support is mostly done
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 28 Nov 2015 21:27:21 -0800 |
parents | b9564fb88a5a |
children | 599e2861f484 |
comparison
equal
deleted
inserted
replaced
906:8cf57c6558ed | 907:b5d35222047e |
---|---|
36 struct { | 36 struct { |
37 uint16_t last_read_x; | 37 uint16_t last_read_x; |
38 uint16_t last_read_y; | 38 uint16_t last_read_y; |
39 uint16_t cur_x; | 39 uint16_t cur_x; |
40 uint16_t cur_y; | 40 uint16_t cur_y; |
41 int16_t delta_x; | |
42 int16_t delta_y; | |
41 uint8_t tr_counter; | 43 uint8_t tr_counter; |
42 uint8_t state; | 44 uint8_t mouse_num; |
43 } mouse; | 45 } mouse; |
44 } device; | 46 } device; |
45 uint8_t output; | 47 uint8_t output; |
46 uint8_t control; | 48 uint8_t control; |
47 uint8_t input[3]; | 49 uint8_t input[3]; |
74 void handle_keyup(int keycode); | 76 void handle_keyup(int keycode); |
75 void handle_joydown(int joystick, int button); | 77 void handle_joydown(int joystick, int button); |
76 void handle_joyup(int joystick, int button); | 78 void handle_joyup(int joystick, int button); |
77 void handle_joy_dpad(int joystick, int dpad, uint8_t state); | 79 void handle_joy_dpad(int joystick, int dpad, uint8_t state); |
78 void handle_mouse_moved(int mouse, uint16_t x, uint16_t y); | 80 void handle_mouse_moved(int mouse, uint16_t x, uint16_t y); |
81 void handle_mousedown(int mouse, int button); | |
82 void handle_mouseup(int mouse, int button); | |
79 | 83 |
80 #endif //IO_H_ | 84 #endif //IO_H_ |
81 | 85 |