Mercurial > repos > blastem
comparison bindings.h @ 2317:e836cf11783b
Make deadzones configurable and bump up the default value
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 02 Apr 2023 23:21:39 -0700 |
parents | 59fd8aa352e2 |
children |
comparison
equal
deleted
inserted
replaced
2316:523ab225815b | 2317:e836cf11783b |
---|---|
1 #ifndef BINDINGS_H_ | 1 #ifndef BINDINGS_H_ |
2 #define BINDINGS_H_ | 2 #define BINDINGS_H_ |
3 #include <stdint.h> | 3 #include <stdint.h> |
4 #include "controller_info.h" | |
4 | 5 |
5 typedef enum { | 6 typedef enum { |
6 MOUSE_NONE, //mouse is ignored | 7 MOUSE_NONE, //mouse is ignored |
7 MOUSE_ABSOLUTE, //really only useful for menu ROM | 8 MOUSE_ABSOLUTE, //really only useful for menu ROM |
8 MOUSE_RELATIVE, //for full screen | 9 MOUSE_RELATIVE, //for full screen |
10 } mouse_modes; | 11 } mouse_modes; |
11 | 12 |
12 void set_bindings(void); | 13 void set_bindings(void); |
13 void update_pad_bindings(void); | 14 void update_pad_bindings(void); |
14 void bindings_set_mouse_mode(uint8_t mode); | 15 void bindings_set_mouse_mode(uint8_t mode); |
15 tern_node *get_binding_node_for_pad(int padnum); | 16 tern_node *get_binding_node_for_pad(int padnum, controller_info *info); |
16 void handle_keydown(int keycode, uint8_t scancode); | 17 void handle_keydown(int keycode, uint8_t scancode); |
17 void handle_keyup(int keycode, uint8_t scancode); | 18 void handle_keyup(int keycode, uint8_t scancode); |
18 void handle_joydown(int joystick, int button); | 19 void handle_joydown(int joystick, int button); |
19 void handle_joyup(int joystick, int button); | 20 void handle_joyup(int joystick, int button); |
20 void handle_joy_dpad(int joystick, int dpad, uint8_t state); | 21 void handle_joy_dpad(int joystick, int dpad, uint8_t state); |