WM: move WM_event_is_last_mousemove to the WM API
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user