depot/pkgs/by-name/sh/shadps4/laptop-controls.patch
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

24 lines
927 B
Diff

diff --git a/src/sdl_window.cpp b/src/sdl_window.cpp
index bd2cc39d..13438149 100644
--- a/src/sdl_window.cpp
+++ b/src/sdl_window.cpp
@@ -127,19 +127,12 @@ void WindowSDL::onResize() {
void WindowSDL::onKeyPress(const SDL_Event* event) {
using Libraries::Pad::OrbisPadButtonDataOffset;
-#ifdef __APPLE__
// Use keys that are more friendly for keyboards without a keypad.
// Once there are key binding options this won't be necessary.
constexpr SDL_Keycode CrossKey = SDLK_N;
constexpr SDL_Keycode CircleKey = SDLK_B;
constexpr SDL_Keycode SquareKey = SDLK_V;
constexpr SDL_Keycode TriangleKey = SDLK_C;
-#else
- constexpr SDL_Keycode CrossKey = SDLK_KP_2;
- constexpr SDL_Keycode CircleKey = SDLK_KP_6;
- constexpr SDL_Keycode SquareKey = SDLK_KP_4;
- constexpr SDL_Keycode TriangleKey = SDLK_KP_8;
-#endif
u32 button = 0;
Input::Axis axis = Input::Axis::AxisMax;