linter at it again

This commit is contained in:
fireph 2024-10-07 19:24:30 -07:00
parent e33852a127
commit 78e93fd826

View File

@ -280,8 +280,7 @@ void WindowSDL::onKeyPress(const SDL_Event* event) {
break; break;
case SDLK_SPACE: case SDLK_SPACE:
if (backButtonBehavior != "none") { if (backButtonBehavior != "none") {
float x = backButtonBehavior == "left" float x = backButtonBehavior == "left" ? 0.25f
? 0.25f
: (backButtonBehavior == "right" ? 0.75f : 0.5f); : (backButtonBehavior == "right" ? 0.75f : 0.5f);
// trigger a touchpad event so that the touchpad emulation for back button works // trigger a touchpad event so that the touchpad emulation for back button works
controller->SetTouchpadState(0, true, x, 0.5f); controller->SetTouchpadState(0, true, x, 0.5f);