Mercurial > repos > blastem
comparison controller_info.h @ 2053:3414a4423de1 segacd
Merge from default
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 15 Jan 2022 13:15:21 -0800 |
parents | 193b804c9845 |
children | dd9d43c67986 |
comparison
equal
deleted
inserted
replaced
1692:5dacaef602a7 | 2053:3414a4423de1 |
---|---|
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_ |