comparison controller_info.h @ 2041:638eb2d25696 mame_interp

Merge from default
author Michael Pavone <pavone@retrodev.com>
date Thu, 05 Aug 2021 09:29:33 -0700
parents 193b804c9845
children dd9d43c67986
comparison
equal deleted inserted replaced
1984:0d5f88e53dca 2041:638eb2d25696
28 28
29 enum { 29 enum {
30 VARIANT_NORMAL, 30 VARIANT_NORMAL,
31 VARIANT_6B_BUMPERS, //C and Z positions are RB and LB respectively 31 VARIANT_6B_BUMPERS, //C and Z positions are RB and LB respectively
32 VARIANT_6B_RIGHT, //C and Z positions are RT and RB respectively 32 VARIANT_6B_RIGHT, //C and Z positions are RT and RB respectively
33 VARIANT_3BUTTON, //3-button Gen/MD controller
34 VARIANT_8BUTTON, //Modern 8-button Gen/MD style controller (retro-bit, 8bitdo M30, etc.)
33 VARIANT_NUM 35 VARIANT_NUM
34 }; 36 };
35 37
36 typedef struct { 38 typedef struct {
37 char const *name; 39 char const *name;
43 controller_info get_controller_info(int index); 45 controller_info get_controller_info(int index);
44 const char *get_button_label(controller_info *info, int button); 46 const char *get_button_label(controller_info *info, int button);
45 const char *get_axis_label(controller_info *info, int axis); 47 const char *get_axis_label(controller_info *info, int axis);
46 void save_controller_info(int joystick, controller_info *info); 48 void save_controller_info(int joystick, controller_info *info);
47 void save_controller_mapping(int joystick, char *mapping_string); 49 void save_controller_mapping(int joystick, char *mapping_string);
50 void delete_controller_info(void);
48 void controller_add_mappings(void); 51 void controller_add_mappings(void);
49 char *make_controller_type_key(controller_info *info); 52 char *make_controller_type_key(controller_info *info);
50 char *make_human_readable_type_name(controller_info *info); 53 char *make_human_readable_type_name(controller_info *info);
51 54
52 #endif //CONTROLLER_INFO_H_ 55 #endif //CONTROLLER_INFO_H_