mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
fixed missing handling for mouse keys
This commit is contained in:
parent
9f1d91e573
commit
5bef0bcb8f
|
@ -183,6 +183,8 @@ int CInput::Update()
|
|||
if(Event.button.button == SDL_BUTTON_LEFT) Key = KEY_MOUSE_1; // ignore_convention
|
||||
if(Event.button.button == SDL_BUTTON_RIGHT) Key = KEY_MOUSE_2; // ignore_convention
|
||||
if(Event.button.button == SDL_BUTTON_MIDDLE) Key = KEY_MOUSE_3; // ignore_convention
|
||||
if(Event.button.button == 4) Key = KEY_MOUSE_4; // ignore_convention
|
||||
if(Event.button.button == 5) Key = KEY_MOUSE_5; // ignore_convention
|
||||
if(Event.button.button == 6) Key = KEY_MOUSE_6; // ignore_convention
|
||||
if(Event.button.button == 7) Key = KEY_MOUSE_7; // ignore_convention
|
||||
if(Event.button.button == 8) Key = KEY_MOUSE_8; // ignore_convention
|
||||
|
|
Loading…
Reference in a new issue