mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed so that you can bind mouse buttons
This commit is contained in:
parent
fd1435a10d
commit
02e3439913
|
@ -71,6 +71,9 @@ static void key_callback(int key, int action)
|
|||
|
||||
static void mousebutton_callback(int button, int action)
|
||||
{
|
||||
if(action == GLFW_PRESS)
|
||||
last_k = KEY_MOUSE_FIRST+button;
|
||||
|
||||
if(action == GLFW_PRESS)
|
||||
input_count[input_current^1][KEY_MOUSE_FIRST+button].presses++;
|
||||
if(action == GLFW_RELEASE)
|
||||
|
|
Loading…
Reference in a new issue