Added mouse side button support

This commit is contained in:
kalaposfos13 2024-10-18 13:50:48 +02:00
parent 24348f6990
commit 2c913a1940

View File

@ -170,6 +170,8 @@ const 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},
{"sidebuttonback", SDL_BUTTON_X1},
{"sidebuttonforward", SDL_BUTTON_X2},
{"mousewheelup", SDL_EVENT_MOUSE_WHEEL_UP}, {"mousewheelup", SDL_EVENT_MOUSE_WHEEL_UP},
{"mousewheeldown", SDL_EVENT_MOUSE_WHEEL_DOWN}, {"mousewheeldown", SDL_EVENT_MOUSE_WHEEL_DOWN},
{"mousewheelleft", SDL_EVENT_MOUSE_WHEEL_LEFT}, {"mousewheelleft", SDL_EVENT_MOUSE_WHEEL_LEFT},