Added handling of modifier keys for mouse events in Cocoa backend

This commit is contained in:
alexey.lysiuk 2017-02-03 22:01:34 +02:00
parent f04b0d129d
commit c6e42d6fa0

View file

@ -473,6 +473,7 @@ void ProcessMouseMoveInMenu(NSEvent* theEvent)
event.type = EV_GUI_Event;
event.subtype = EV_GUI_MouseMove;
event.data3 = ModifierFlagsToGUIKeyModifiers(theEvent);
NSEventToGameMousePosition(theEvent, &event);
@ -633,7 +634,8 @@ void ProcessMouseButtonEvent(NSEvent* theEvent)
if (GUICapture)
{
event.type = EV_GUI_Event;
event.type = EV_GUI_Event;
event.data3 = ModifierFlagsToGUIKeyModifiers(theEvent);
switch (cocoaEventType)
{