mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2024-12-21 23:08:53 -05:00
Adjust "sliders as buttons" threshold
The initial value of 32 was too low. Buttons were triggered without even touching the sliders.
This commit is contained in:
parent
a041e8eaf8
commit
d72815e9e6
4
usbpad.c
4
usbpad.c
@ -117,9 +117,9 @@ static void buildReportFromGC(const gc_pad_data *gc_data, unsigned char dstbuf[U
|
||||
|
||||
if (g_eeprom_data.cfg.flags & FLAG_GC_SLIDERS_AS_BUTTONS) {
|
||||
/* In this mode, the sliders control buttons */
|
||||
if (ltrig > 32)
|
||||
if (ltrig > 64)
|
||||
gcbuttons |= GC_BTN_L;
|
||||
if (rtrig > 32)
|
||||
if (rtrig > 64)
|
||||
gcbuttons |= GC_BTN_R;
|
||||
|
||||
/* And the sliders analog values are fixed. */
|
||||
|
Loading…
Reference in New Issue
Block a user