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
1 changed files with 2 additions and 2 deletions

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