diff controller_info.h @ 1599:1fc61c844ec5

Allow selecting controller type when controllers have an SDL 2 mapping, but heuristics fail to idenify details
author Michael Pavone <pavone@retrodev.com>
date Fri, 27 Jul 2018 22:40:56 -0700
parents 437e80a700aa
children 7f39c40b4b25
line wrap: on
line diff
--- a/controller_info.h	Wed Jul 25 09:38:40 2018 -0700
+++ b/controller_info.h	Fri Jul 27 22:40:56 2018 -0700
@@ -22,13 +22,15 @@
 	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 @@
 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