From 9938fca108d181de940ffc004aca78715fbce8f2 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 27 Jul 2018 22:40:56 -0700 Subject: Allow selecting controller type when controllers have an SDL 2 mapping, but heuristics fail to idenify details --- controller_info.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'controller_info.h') 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 -- cgit v1.2.3