mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 07:22:07 +00:00
Skip autogenerated mouse move events in Cocoa backend regardless of mode
This commit is contained in:
parent
9292b23bb4
commit
58b348e75a
1 changed files with 6 additions and 13 deletions
|
@ -509,19 +509,6 @@ void ProcessMouseMoveInMenu(NSEvent* theEvent)
|
|||
|
||||
void ProcessMouseMoveInGame(NSEvent* theEvent)
|
||||
{
|
||||
if (!use_mouse)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: remove this magic!
|
||||
|
||||
if (s_skipMouseMoves > 0)
|
||||
{
|
||||
--s_skipMouseMoves;
|
||||
return;
|
||||
}
|
||||
|
||||
int x([theEvent deltaX]);
|
||||
int y(-[theEvent deltaY]);
|
||||
|
||||
|
@ -648,6 +635,12 @@ void ProcessMouseMoveEvent(NSEvent* theEvent)
|
|||
return;
|
||||
}
|
||||
|
||||
if (s_skipMouseMoves > 0)
|
||||
{
|
||||
--s_skipMouseMoves;
|
||||
return;
|
||||
}
|
||||
|
||||
if (GUICapture)
|
||||
{
|
||||
ProcessMouseMoveInMenu(theEvent);
|
||||
|
|
Loading…
Reference in a new issue