Browse Source

Adjust "sliders as buttons" threshold

The initial value of 32 was too low. Buttons were triggered
without even touching the sliders.
pull/5/head
Raphael Assenat 5 years ago
parent
commit
d72815e9e6
  1. 4
      usbpad.c

4
usbpad.c

@ -117,9 +117,9 @@ static void buildReportFromGC(const gc_pad_data *gc_data, unsigned char dstbuf[U @@ -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…
Cancel
Save