fixed so that you can bind mouse buttons

This commit is contained in:
Magnus Auvinen 2007-12-09 15:52:22 +00:00
parent fd1435a10d
commit 02e3439913

View file

@ -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)