1
0
mirror of https://github.com/raphnet/gc_n64_usb-v3 synced 2024-12-21 06:48:52 -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:
Raphael Assenat 2017-08-14 17:57:36 -04:00
parent a041e8eaf8
commit d72815e9e6

View File

@ -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. */