diff 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
line wrap: on
line diff
--- a/bindings.h	Sun Apr 02 23:21:04 2023 -0700
+++ b/bindings.h	Sun Apr 02 23:21:39 2023 -0700
@@ -1,6 +1,7 @@
 #ifndef BINDINGS_H_
 #define BINDINGS_H_
 #include <stdint.h>
+#include "controller_info.h"
 
 typedef enum {
 	MOUSE_NONE,     //mouse is ignored
@@ -12,7 +13,7 @@
 void set_bindings(void);
 void update_pad_bindings(void);
 void bindings_set_mouse_mode(uint8_t mode);
-tern_node *get_binding_node_for_pad(int padnum);
+tern_node *get_binding_node_for_pad(int padnum, controller_info *info);
 void handle_keydown(int keycode, uint8_t scancode);
 void handle_keyup(int keycode, uint8_t scancode);
 void handle_joydown(int joystick, int button);