Cleanup: remove unused WM_event_is_last_mousemove
This was part of walk-mode logic that implemented it's own cursor-grab, now this has been moved to use GHOST's cursor grabbing, it's no longer needed.
This commit is contained in:
@@ -254,16 +254,6 @@ bool WM_event_is_modal_drag_exit(const wmEvent *event,
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool WM_event_is_last_mousemove(const wmEvent *event)
|
||||
{
|
||||
while ((event = event->next)) {
|
||||
if (ELEM(event->type, MOUSEMOVE, INBETWEEN_MOUSEMOVE)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool WM_event_is_mouse_drag(const wmEvent *event)
|
||||
{
|
||||
return (ISMOUSE_BUTTON(event->type) && (event->val == KM_CLICK_DRAG));
|
||||
|
||||
Reference in New Issue
Block a user