mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-18 05:11:42 +00:00
merge
This commit is contained in:
commit
ce84d7d5af
1 changed files with 0 additions and 8 deletions
|
@ -246,14 +246,6 @@ bool CCocoaEventEmitter::processMessage(NSEvent* event, CEventServer* server)
|
||||||
mousePos.x /= (float)viewRect.size.width;
|
mousePos.x /= (float)viewRect.size.width;
|
||||||
mousePos.y /= (float)viewRect.size.height;
|
mousePos.y /= (float)viewRect.size.height;
|
||||||
|
|
||||||
// if the mouse event was placed outside the view, don't tell NeL :)
|
|
||||||
if((mousePos.x < 0.0 || mousePos.x > 1.0 ||
|
|
||||||
mousePos.y < 0.0 || mousePos.y > 1.0) &&
|
|
||||||
event.type != NSKeyDown && event.type != NSKeyUp)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// convert the modifiers for nel to pass them with the events
|
// convert the modifiers for nel to pass them with the events
|
||||||
NLMISC::TKeyButton modifiers =
|
NLMISC::TKeyButton modifiers =
|
||||||
modifierFlagsToNelKeyButton([event modifierFlags]);
|
modifierFlagsToNelKeyButton([event modifierFlags]);
|
||||||
|
|
Loading…
Reference in a new issue