Removed the mouse polling delay.
This commit is contained in:
@@ -167,14 +167,9 @@ mouse_set_buttons(int buttons)
|
|||||||
void
|
void
|
||||||
mouse_process(void)
|
mouse_process(void)
|
||||||
{
|
{
|
||||||
static int poll_delay = 2;
|
|
||||||
|
|
||||||
if (mouse_curr == NULL)
|
if (mouse_curr == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (--poll_delay)
|
|
||||||
return;
|
|
||||||
|
|
||||||
mouse_poll();
|
mouse_poll();
|
||||||
|
|
||||||
if ((mouse_dev_poll != NULL) || (mouse_curr->poll != NULL)) {
|
if ((mouse_dev_poll != NULL) || (mouse_curr->poll != NULL)) {
|
||||||
@@ -186,8 +181,6 @@ mouse_process(void)
|
|||||||
/* Reset mouse deltas. */
|
/* Reset mouse deltas. */
|
||||||
mouse_x = mouse_y = mouse_z = 0;
|
mouse_x = mouse_y = mouse_z = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
poll_delay = 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user