mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
Added handling of modifier keys for mouse events in Cocoa backend
This commit is contained in:
parent
f04b0d129d
commit
c6e42d6fa0
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue