Skip to content

Commit

Permalink
Fix clang-format lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ekchang committed Oct 22, 2023
1 parent 5c07914 commit a609b47
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/platform/windows/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1333,11 +1333,9 @@ namespace platf {

// Allow either PS4/PS5 clickpad button or Xbox Series X share button to activate DS4 clickpad
if (gamepad_state.buttonFlags & (TOUCHPAD_BUTTON | MISC_BUTTON)) buttons |= DS4_SPECIAL_BUTTON_TOUCHPAD;

// Manual DS4 emulation: check if BACK button should also trigger DS4 touchpad click
if (config::input.gamepad == "ds4"sv
&& config::input.ds4_back_as_touchpad_click
&& (gamepad_state.buttonFlags & BACK)) buttons |= DS4_SPECIAL_BUTTON_TOUCHPAD;
if (config::input.gamepad == "ds4"sv && config::input.ds4_back_as_touchpad_click && (gamepad_state.buttonFlags & BACK)) buttons |= DS4_SPECIAL_BUTTON_TOUCHPAD;

return (DS4_SPECIAL_BUTTONS) buttons;
}
Expand Down

0 comments on commit a609b47

Please sign in to comment.