WM: move WM_event_is_last_mousemove to the WM API

This commit is contained in:
2017-07-18 18:06:21 +10:00
parent 5f35682f3a
commit 7784cf30eb
3 changed files with 12 additions and 11 deletions

View File

@@ -615,6 +615,16 @@ bool WM_event_is_absolute(const wmEvent *event)
return (event->tablet_data != NULL);
}
bool WM_event_is_last_mousemove(const wmEvent *event)
{
while ((event = event->next)) {
if (ELEM(event->type, MOUSEMOVE, INBETWEEN_MOUSEMOVE)) {
return false;
}
}
return true;
}
#ifdef WITH_INPUT_NDOF
void WM_ndof_deadzone_set(float deadzone)
{