mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-29 03:32:48 +00:00
Missing PointerType in regular mouse movement events on OS X
This commit is contained in:
parent
f447b457db
commit
ac6d930d08
@ -236,6 +236,10 @@ bool is_key_pressed(KeyScancode scancode)
|
|||||||
ev.setType(Event::MouseMove);
|
ev.setType(Event::MouseMove);
|
||||||
ev.setPosition(get_local_mouse_pos(self, event));
|
ev.setPosition(get_local_mouse_pos(self, event));
|
||||||
ev.setModifiers(get_modifiers_from_nsevent(event));
|
ev.setModifiers(get_modifiers_from_nsevent(event));
|
||||||
|
|
||||||
|
if (m_pointerType != she::PointerType::Unknown)
|
||||||
|
ev.setPointerType(m_pointerType);
|
||||||
|
|
||||||
queue_event(ev);
|
queue_event(ev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user