mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 00:13:08 +00:00
linter again
This commit is contained in:
parent
1229c03272
commit
f0de2e83bc
@ -334,8 +334,8 @@ void WindowSDL::onGamepadEvent(const SDL_Event* event) {
|
|||||||
std::string backButtonBehavior = Config::getBackButtonBehavior();
|
std::string backButtonBehavior = Config::getBackButtonBehavior();
|
||||||
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);
|
||||||
controller->CheckButton(0, button,
|
controller->CheckButton(0, button,
|
||||||
|
Loading…
Reference in New Issue
Block a user