mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 08:22:32 +00:00
add numpad support i accidentally left out
This commit is contained in:
parent
b300ffe959
commit
ef7b0ad683
@ -166,6 +166,24 @@ std::map<std::string, u32> string_to_keyboard_key_map = {
|
|||||||
{"leftbutton", SDL_BUTTON_LEFT},
|
{"leftbutton", SDL_BUTTON_LEFT},
|
||||||
{"rightbutton", SDL_BUTTON_RIGHT},
|
{"rightbutton", SDL_BUTTON_RIGHT},
|
||||||
{"middlebutton", SDL_BUTTON_MIDDLE},
|
{"middlebutton", SDL_BUTTON_MIDDLE},
|
||||||
|
{"kp0", SDLK_KP_0},
|
||||||
|
{"kp1", SDLK_KP_1},
|
||||||
|
{"kp2", SDLK_KP_2},
|
||||||
|
{"kp3", SDLK_KP_3},
|
||||||
|
{"kp4", SDLK_KP_4},
|
||||||
|
{"kp5", SDLK_KP_5},
|
||||||
|
{"kp6", SDLK_KP_6},
|
||||||
|
{"kp7", SDLK_KP_7},
|
||||||
|
{"kp8", SDLK_KP_8},
|
||||||
|
{"kp9", SDLK_KP_9},
|
||||||
|
{"kpperiod", SDLK_KP_PERIOD},
|
||||||
|
{"kpdivide", SDLK_KP_DIVIDE},
|
||||||
|
{"kpmultiply", SDLK_KP_MULTIPLY},
|
||||||
|
{"kpminus", SDLK_KP_MINUS},
|
||||||
|
{"kpplus", SDLK_KP_PLUS},
|
||||||
|
{"kpenter", SDLK_KP_ENTER},
|
||||||
|
{"kpequals", SDLK_KP_EQUALS},
|
||||||
|
{"kpcomma", SDLK_KP_COMMA},
|
||||||
};
|
};
|
||||||
std::map<std::string, u32> string_to_keyboard_mod_key_map = {
|
std::map<std::string, u32> string_to_keyboard_mod_key_map = {
|
||||||
{"lshift", SDL_KMOD_LSHIFT}, {"rshift", SDL_KMOD_RSHIFT}, {"lctrl", SDL_KMOD_LCTRL},
|
{"lshift", SDL_KMOD_LSHIFT}, {"rshift", SDL_KMOD_RSHIFT}, {"lctrl", SDL_KMOD_LCTRL},
|
||||||
|
Loading…
Reference in New Issue
Block a user