mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-27 22:22:08 +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.type = EV_GUI_Event;
|
||||||
event.subtype = EV_GUI_MouseMove;
|
event.subtype = EV_GUI_MouseMove;
|
||||||
|
event.data3 = ModifierFlagsToGUIKeyModifiers(theEvent);
|
||||||
|
|
||||||
NSEventToGameMousePosition(theEvent, &event);
|
NSEventToGameMousePosition(theEvent, &event);
|
||||||
|
|
||||||
|
@ -634,6 +635,7 @@ void ProcessMouseButtonEvent(NSEvent* theEvent)
|
||||||
if (GUICapture)
|
if (GUICapture)
|
||||||
{
|
{
|
||||||
event.type = EV_GUI_Event;
|
event.type = EV_GUI_Event;
|
||||||
|
event.data3 = ModifierFlagsToGUIKeyModifiers(theEvent);
|
||||||
|
|
||||||
switch (cocoaEventType)
|
switch (cocoaEventType)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue