subsoap / defos

Extra native OS functions for games written using the Defold game engine
Creative Commons Zero v1.0 Universal
112 stars 16 forks source link

Implement mouse enter/leave on Linux #106

Closed GreenXenith closed 4 years ago

GreenXenith commented 4 years ago

Uses EnterNotify and LeaveNotify xevents defos_is_mouse_in_view().

dapetcu21 commented 4 years ago

Are you 100% sure this doesn't eat/mask out events that Defold might be using? Also, are you sure Defold isn't eating some events from the event queue?

GreenXenith commented 4 years ago

In order to avoid conflicts with Defold and XEvent, it now uses the defos_is_mouse_in_view() function. Less code, little chance of conflict.