Missing PointerType in regular mouse movement events on OS X

This commit is contained in:
David Capello 2016-04-21 13:40:18 -03:00
parent f447b457db
commit ac6d930d08

View File

@ -236,6 +236,10 @@ bool is_key_pressed(KeyScancode scancode)
ev.setType(Event::MouseMove);
ev.setPosition(get_local_mouse_pos(self, event));
ev.setModifiers(get_modifiers_from_nsevent(event));
if (m_pointerType != she::PointerType::Unknown)
ev.setPointerType(m_pointerType);
queue_event(ev);
}