mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2024-12-21 23:08:53 -05:00
Add "triggers as buttons" flag
This commit is contained in:
parent
324bb81b1e
commit
a9d5df2b8f
3
config.c
3
config.c
@ -76,6 +76,9 @@ unsigned char config_getParam(unsigned char param, unsigned char *value, unsigne
|
|||||||
case CFG_PARAM_FULL_SLIDERS:
|
case CFG_PARAM_FULL_SLIDERS:
|
||||||
*value = (g_eeprom_data.cfg.flags & FLAG_GC_FULL_SLIDERS) ? 1 : 0;
|
*value = (g_eeprom_data.cfg.flags & FLAG_GC_FULL_SLIDERS) ? 1 : 0;
|
||||||
return 1;
|
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;
|
return 0;
|
||||||
|
1
config.h
1
config.h
@ -12,6 +12,7 @@ struct eeprom_cfg {
|
|||||||
|
|
||||||
#define FLAG_GC_FULL_SLIDERS 1
|
#define FLAG_GC_FULL_SLIDERS 1
|
||||||
#define FLAG_GC_INVERT_TRIGS 2
|
#define FLAG_GC_INVERT_TRIGS 2
|
||||||
|
#define FLAG_GC_SLIDERS_AS_BUTTONS 4
|
||||||
|
|
||||||
void eeprom_app_write_defaults(void);
|
void eeprom_app_write_defaults(void);
|
||||||
void eeprom_app_ready(void);
|
void eeprom_app_ready(void);
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
#define CFG_PARAM_GC_CSTICK_SQUARE 0x22 // Not implemented
|
#define CFG_PARAM_GC_CSTICK_SQUARE 0x22 // Not implemented
|
||||||
#define CFG_PARAM_FULL_SLIDERS 0x23
|
#define CFG_PARAM_FULL_SLIDERS 0x23
|
||||||
#define CFG_PARAM_INVERT_TRIG 0x24
|
#define CFG_PARAM_INVERT_TRIG 0x24
|
||||||
|
#define CFG_PARAM_TRIGGERS_AS_BUTTONS 0x25
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user