linux scroll wheel

master
insofaras 2016-02-23 21:40:49 +00:00
parent e16ab8c1c4
commit fde2fda466
1 changed files with 11 additions and 0 deletions

View File

@ -1645,6 +1645,16 @@ main(int argc, char **argv)
linuxvars.mouse_data.right_button_pressed = 1;
linuxvars.mouse_data.right_button = 1;
} break;
//NOTE(inso): scroll up
case Button4: {
linuxvars.mouse_data.wheel = 1;
}break;
//NOTE(inso): scroll down
case Button5: {
linuxvars.mouse_data.wheel = -1;
}break;
}
}break;
@ -1839,6 +1849,7 @@ main(int argc, char **argv)
linuxvars.mouse_data.left_button_released = 0;
linuxvars.mouse_data.right_button_pressed = 0;
linuxvars.mouse_data.right_button_released = 0;
linuxvars.mouse_data.wheel = 0;
ProfileStart(OS_file_process);
{