ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / sh / shadps4 / laptop-controls.patch
blobe221cc71dd40516258c279fd2ba35c7884e34bed
1 diff --git a/src/sdl_window.cpp b/src/sdl_window.cpp
2 index bd2cc39d..13438149 100644
3 --- a/src/sdl_window.cpp
4 +++ b/src/sdl_window.cpp
5 @@ -127,19 +127,12 @@ void WindowSDL::onResize() {
6 void WindowSDL::onKeyPress(const SDL_Event* event) {
7 using Libraries::Pad::OrbisPadButtonDataOffset;
9 -#ifdef __APPLE__
10 // Use keys that are more friendly for keyboards without a keypad.
11 // Once there are key binding options this won't be necessary.
12 constexpr SDL_Keycode CrossKey = SDLK_N;
13 constexpr SDL_Keycode CircleKey = SDLK_B;
14 constexpr SDL_Keycode SquareKey = SDLK_V;
15 constexpr SDL_Keycode TriangleKey = SDLK_C;
16 -#else
17 - constexpr SDL_Keycode CrossKey = SDLK_KP_2;
18 - constexpr SDL_Keycode CircleKey = SDLK_KP_6;
19 - constexpr SDL_Keycode SquareKey = SDLK_KP_4;
20 - constexpr SDL_Keycode TriangleKey = SDLK_KP_8;
21 -#endif
23 u32 button = 0;
24 Input::Axis axis = Input::Axis::AxisMax;