Mercurial > repos > blastem
diff io.h @ 897:b9564fb88a5a
WIP support for mega mouse
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 25 Nov 2015 20:32:20 -0800 |
parents | 252dfd29831d |
children | b5d35222047e |
line wrap: on
line diff
--- a/io.h Wed Nov 25 20:31:21 2015 -0800 +++ b/io.h Wed Nov 25 20:32:20 2015 -0800 @@ -33,6 +33,14 @@ 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_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_