1
0
mirror of https://github.com/raphnet/gc_n64_usb-v3 synced 2024-12-21 06:48:52 -05:00

Add "triggers as buttons" flag

This commit is contained in:
Raphael Assenat 2017-08-05 17:12:26 -04:00
parent 324bb81b1e
commit a9d5df2b8f
3 changed files with 5 additions and 0 deletions

View File

@ -76,6 +76,9 @@ unsigned char config_getParam(unsigned char param, unsigned char *value, unsigne
case CFG_PARAM_FULL_SLIDERS:
*value = (g_eeprom_data.cfg.flags & FLAG_GC_FULL_SLIDERS) ? 1 : 0;
return 1;
case CFG_PARAM_TRIGGERS_AS_BUTTONS:
*value = (g_eeprom_data.cfg.flags & CFG_PARAM_TRIGGERS_AS_BUTTONS) ? 1 : 0;
return 1;
}
return 0;

View File

@ -12,6 +12,7 @@ struct eeprom_cfg {
#define FLAG_GC_FULL_SLIDERS 1
#define FLAG_GC_INVERT_TRIGS 2
#define FLAG_GC_SLIDERS_AS_BUTTONS 4
void eeprom_app_write_defaults(void);
void eeprom_app_ready(void);

View File

@ -37,6 +37,7 @@
#define CFG_PARAM_GC_CSTICK_SQUARE 0x22 // Not implemented
#define CFG_PARAM_FULL_SLIDERS 0x23
#define CFG_PARAM_INVERT_TRIG 0x24
#define CFG_PARAM_TRIGGERS_AS_BUTTONS 0x25
#endif