diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-09-02 22:17:26 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-09-02 22:17:26 +1000 |
commit | ac7577b4df91fbf31541f203e88eccb64b98365a (patch) | |
tree | bc69420c0cab776c49b27deeb93d9d2ffaff75c7 /source/application | |
parent | 566b0f4d362fb2858fe76dca805c4d2930da0f27 (diff) |
Rename Keypad enums
noticed keypad binds were named like this in SE (probably due to using the names given by SDL there) and it's nicer anyway. better do this sooner than later.
Diffstat (limited to 'source/application')
-rw-r--r-- | source/application/StarMainApplication_sdl.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/source/application/StarMainApplication_sdl.cpp b/source/application/StarMainApplication_sdl.cpp index c697a26..6b0ca4c 100644 --- a/source/application/StarMainApplication_sdl.cpp +++ b/source/application/StarMainApplication_sdl.cpp @@ -90,23 +90,23 @@ Maybe<Key> keyFromSdlKeyCode(SDL_Keycode sym) { {SDLK_y, Key::Y}, {SDLK_z, Key::Z}, {SDLK_DELETE, Key::Delete}, - {SDLK_KP_0, Key::Kp0}, - {SDLK_KP_1, Key::Kp1}, - {SDLK_KP_2, Key::Kp2}, - {SDLK_KP_3, Key::Kp3}, - {SDLK_KP_4, Key::Kp4}, - {SDLK_KP_5, Key::Kp5}, - {SDLK_KP_6, Key::Kp6}, - {SDLK_KP_7, Key::Kp7}, - {SDLK_KP_8, Key::Kp8}, - {SDLK_KP_9, Key::Kp9}, - {SDLK_KP_PERIOD, Key::Kp_period}, - {SDLK_KP_DIVIDE, Key::Kp_divide}, - {SDLK_KP_MULTIPLY, Key::Kp_multiply}, - {SDLK_KP_MINUS, Key::Kp_minus}, - {SDLK_KP_PLUS, Key::Kp_plus}, - {SDLK_KP_ENTER, Key::Kp_enter}, - {SDLK_KP_EQUALS, Key::Kp_equals}, + {SDLK_KP_0, Key::Keypad0}, + {SDLK_KP_1, Key::Keypad1}, + {SDLK_KP_2, Key::Keypad2}, + {SDLK_KP_3, Key::Keypad3}, + {SDLK_KP_4, Key::Keypad4}, + {SDLK_KP_5, Key::Keypad5}, + {SDLK_KP_6, Key::Keypad6}, + {SDLK_KP_7, Key::Keypad7}, + {SDLK_KP_8, Key::Keypad8}, + {SDLK_KP_9, Key::Keypad9}, + {SDLK_KP_PERIOD, Key::KeypadPeriod}, + {SDLK_KP_DIVIDE, Key::KeypadDivide}, + {SDLK_KP_MULTIPLY, Key::KeypadMultiply}, + {SDLK_KP_MINUS, Key::KeypadMinus}, + {SDLK_KP_PLUS, Key::KeypadPlus}, + {SDLK_KP_ENTER, Key::KeypadEnter}, + {SDLK_KP_EQUALS, Key::KeypadEquals}, {SDLK_UP, Key::Up}, {SDLK_DOWN, Key::Down}, {SDLK_RIGHT, Key::Right}, |