Mercurial > repos > blastem
comparison bindings.h @ 1692:5dacaef602a7 segacd
Merge from default
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 05 Jan 2019 00:58:08 -0800 |
parents | 12d0c7c4ad80 |
children | 0c723b8b637c |
comparison
equal
deleted
inserted
replaced
1504:95b3a1a8b26c | 1692:5dacaef602a7 |
---|---|
1 #ifndef BINDINGS_H_ | |
2 #define BINDINGS_H_ | |
3 #include <stdint.h> | |
4 | |
5 typedef enum { | |
6 MOUSE_NONE, //mouse is ignored | |
7 MOUSE_ABSOLUTE, //really only useful for menu ROM | |
8 MOUSE_RELATIVE, //for full screen | |
9 MOUSE_CAPTURE //for windowed mode | |
10 } mouse_modes; | |
11 | |
12 void set_bindings(void); | |
13 void bindings_set_mouse_mode(uint8_t mode); | |
14 tern_node *get_binding_node_for_pad(int padnum); | |
15 void handle_keydown(int keycode, uint8_t scancode); | |
16 void handle_keyup(int keycode, uint8_t scancode); | |
17 void handle_joydown(int joystick, int button); | |
18 void handle_joyup(int joystick, int button); | |
19 void handle_joy_dpad(int joystick, int dpad, uint8_t state); | |
20 void handle_joy_axis(int joystick, int axis, int16_t value); | |
21 void handle_joy_added(int joystick); | |
22 void handle_mouse_moved(int mouse, uint16_t x, uint16_t y, int16_t deltax, int16_t deltay); | |
23 void handle_mousedown(int mouse, int button); | |
24 void handle_mouseup(int mouse, int button); | |
25 | |
26 void bindings_release_capture(void); | |
27 void bindings_reacquire_capture(void); | |
28 void set_content_binding_state(uint8_t enabled); | |
29 | |
30 #endif //BINDINGS_H_ |