comparison 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
comparison
equal deleted inserted replaced
896:74cc31040521 897:b9564fb88a5a
31 } pad; 31 } pad;
32 struct { 32 struct {
33 int data_fd; 33 int data_fd;
34 int listen_fd; 34 int listen_fd;
35 } stream; 35 } stream;
36 struct {
37 uint16_t last_read_x;
38 uint16_t last_read_y;
39 uint16_t cur_x;
40 uint16_t cur_y;
41 uint8_t tr_counter;
42 uint8_t state;
43 } mouse;
36 } device; 44 } device;
37 uint8_t output; 45 uint8_t output;
38 uint8_t control; 46 uint8_t control;
39 uint8_t input[3]; 47 uint8_t input[3];
40 uint8_t device_type; 48 uint8_t device_type;
65 void handle_keydown(int keycode); 73 void handle_keydown(int keycode);
66 void handle_keyup(int keycode); 74 void handle_keyup(int keycode);
67 void handle_joydown(int joystick, int button); 75 void handle_joydown(int joystick, int button);
68 void handle_joyup(int joystick, int button); 76 void handle_joyup(int joystick, int button);
69 void handle_joy_dpad(int joystick, int dpad, uint8_t state); 77 void handle_joy_dpad(int joystick, int dpad, uint8_t state);
78 void handle_mouse_moved(int mouse, uint16_t x, uint16_t y);
70 79
71 #endif //IO_H_ 80 #endif //IO_H_
72 81