mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix Mouse buttons 4 and 5
This commit is contained in:
parent
0155c75cf4
commit
10d6f69d32
|
@ -207,6 +207,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 == SDL_BUTTON_X1) Key = KEY_MOUSE_4; // ignore_convention
|
||||
if(Event.button.button == SDL_BUTTON_X2) 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