Removed the mouse polling delay.

This commit is contained in:
OBattler
2022-10-22 00:53:46 +02:00
parent d963bf4237
commit 7c0b0f94f7

View File

@@ -167,14 +167,9 @@ mouse_set_buttons(int buttons)
void
mouse_process(void)
{
static int poll_delay = 2;
if (mouse_curr == NULL)
return;
if (--poll_delay)
return;
mouse_poll();
if ((mouse_dev_poll != NULL) || (mouse_curr->poll != NULL)) {
@@ -186,8 +181,6 @@ mouse_process(void)
/* Reset mouse deltas. */
mouse_x = mouse_y = mouse_z = 0;
}
poll_delay = 2;
}
void