feat(gx): correct translation of mouse button index

This commit is contained in:
superp00t 2023-11-24 23:51:01 -05:00
parent 49bc9d5d8b
commit 73912ed71a

View File

@ -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;
}