summaryrefslogtreecommitdiff
path: root/controller_info.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2018-07-27 22:40:56 -0700
committerMichael Pavone <pavone@retrodev.com>2018-07-27 22:40:56 -0700
commit9938fca108d181de940ffc004aca78715fbce8f2 (patch)
tree3bc1bd7f3dc016e1b73b9160598c8849a9edcdf2 /controller_info.h
parent82e01c428d71a80bc2547a41664f8dbe5a1d2270 (diff)
Allow selecting controller type when controllers have an SDL 2 mapping, but heuristics fail to idenify details
Diffstat (limited to 'controller_info.h')
-rw-r--r--controller_info.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/controller_info.h b/controller_info.h
index 0bef684..60ff38d 100644
--- a/controller_info.h
+++ b/controller_info.h
@@ -22,13 +22,15 @@ enum {
SUBTYPE_WIIU,
SUBTYPE_SWITCH,
SUBTYPE_GENESIS,
- SUBTYPE_SATURN
+ SUBTYPE_SATURN,
+ SUBTYPE_NUM
};
enum {
VARIANT_NORMAL,
VARIANT_6B_BUMPERS, //C and Z positions are RB and LB respectively
- VARIANT_6B_RIGHT //C and Z positions are RT and RB respectively
+ VARIANT_6B_RIGHT, //C and Z positions are RT and RB respectively
+ VARIANT_NUM
};
typedef struct {
@@ -41,5 +43,6 @@ typedef struct {
controller_info get_controller_info(int index);
const char *get_button_label(controller_info *info, int button);
const char *get_axis_label(controller_info *info, int axis);
+void save_controller_info(int joystick, controller_info *info);
#endif //CONTROLLER_INFO_H_ \ No newline at end of file