mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 06:32:42 +00:00
Add double-click support on Skia/OS X port (fix #1057)
This commit is contained in:
parent
44fadbc275
commit
7c9ba13321
@ -302,7 +302,8 @@ bool is_key_pressed(KeyScancode scancode)
|
||||
- (void)handleMouseDown:(NSEvent*)event
|
||||
{
|
||||
Event ev;
|
||||
ev.setType(Event::MouseDown);
|
||||
ev.setType(event.clickCount == 2 ? Event::MouseDoubleClick:
|
||||
Event::MouseDown);
|
||||
ev.setPosition(get_local_mouse_pos(self, event));
|
||||
ev.setButton(get_mouse_buttons(event));
|
||||
ev.setModifiers(get_modifiers_from_nsevent(event));
|
||||
|
Loading…
x
Reference in New Issue
Block a user