mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-09 16:08:23 +03:00
feat(gx): correct translation of mouse button index
This commit is contained in:
1 parent
49bc9d5d8b
commit
73912ed71a
1 file changed
+3
-1
@@ -121,8 +121,8 @@ static const std::map<SDL_Scancode, KEY> s_keyConversion = {
|
||||
static MOUSEBUTTON s_buttonConversion[16] = {
|
||||
MOUSE_BUTTON_NONE,
|
||||
MOUSE_BUTTON_LEFT,
|
||||
MOUSE_BUTTON_RIGHT,
|
||||
MOUSE_BUTTON_MIDDLE,
|
||||
MOUSE_BUTTON_RIGHT,
|
||||
MOUSE_BUTTON_XBUTTON1,
|
||||
MOUSE_BUTTON_XBUTTON2,
|
||||
MOUSE_BUTTON_XBUTTON3,
|
||||
@@ -281,6 +281,8 @@ void GLSDLWindow::DispatchSDLEvent(const SDL_Event& event) {
|
||||
case SDL_EVENT_MOUSE_MOTION:
|
||||
this->DispatchSDLMouseMotionEvent(event);
|
||||
break;
|
||||
case SDL_EVENT_QUIT:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user