mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-12 07:34:36 +00:00
This commit is contained in:
commit
71ad6c9651
2 changed files with 16 additions and 0 deletions
|
@ -487,4 +487,5 @@ void F2DDrawer::Clear()
|
|||
{
|
||||
mVertices.Clear();
|
||||
mData.Clear();
|
||||
mLastLineCmd = -1;
|
||||
}
|
||||
|
|
|
@ -626,6 +626,11 @@ void ProcessKeyboardFlagsEvent(NSEvent* theEvent)
|
|||
|
||||
void ProcessMouseMoveEvent(NSEvent* theEvent)
|
||||
{
|
||||
if (!use_mouse)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (GUICapture)
|
||||
{
|
||||
ProcessMouseMoveInMenu(theEvent);
|
||||
|
@ -638,6 +643,11 @@ void ProcessMouseMoveEvent(NSEvent* theEvent)
|
|||
|
||||
void ProcessMouseButtonEvent(NSEvent* theEvent)
|
||||
{
|
||||
if (!use_mouse)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
event_t event = {};
|
||||
|
||||
const NSEventType cocoaEventType = [theEvent type];
|
||||
|
@ -690,6 +700,11 @@ void ProcessMouseButtonEvent(NSEvent* theEvent)
|
|||
|
||||
void ProcessMouseWheelEvent(NSEvent* theEvent)
|
||||
{
|
||||
if (!use_mouse)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
const int16_t modifiers = ModifierFlagsToGUIKeyModifiers(theEvent);
|
||||
const CGFloat delta = (modifiers & GKM_SHIFT)
|
||||
? [theEvent deltaX]
|
||||
|
|
Loading…
Reference in a new issue