diff --git a/src/gamepad.cpp b/src/gamepad.cpp index 3020cdf6e..472f76e9d 100644 --- a/src/gamepad.cpp +++ b/src/gamepad.cpp @@ -117,10 +117,7 @@ void Gamepad::setup() mapButtonR3 = new GamepadButtonMapping(convertPin(pinMappings.pinButtonR3), GAMEPAD_MASK_R3); mapButtonA1 = new GamepadButtonMapping(convertPin(pinMappings.pinButtonA1), GAMEPAD_MASK_A1); mapButtonA2 = new GamepadButtonMapping(convertPin(pinMappings.pinButtonA2), GAMEPAD_MASK_A2); - - if(options.inputMode == INPUT_MODE_PS4 && options.switchTpShareForDs4) - f1Mask = GAMEPAD_MASK_A2 | GAMEPAD_MASK_S2; - + uint16_t maskS1 = options.inputMode == INPUT_MODE_PS4 && options.switchTpShareForDs4 ? GAMEPAD_MASK_A2 : GAMEPAD_MASK_S1; mapButtonS1 = new GamepadButtonMapping(pinMappings.pinButtonS1, maskS1);