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 4 years ago
parent
commit
d72815e9e6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      usbpad.c

+ 2
- 2
usbpad.c 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. */


Loading…
Cancel
Save