Hello everyone,
I have a bit of a strange issue with my main dev machine (MacMini M1). About 10% of the time when I start my project, the app doesn't respond to mouse events. I feel that this issue is somehow related to other processes on my machine because sometimes it happens frequently, while other times it happens less often.
When I unfocus the window (by clicking in my terminal) and refocus (by clicking in the window), everything works fine. Also, when I print some debug information in the love.focus function, it doesn't show up in cases where the app isn't responding correctly.
I haven't seen this issue on my other machine, and since it's not a consistent problem, it's very annoying and difficult to track down. Does anyone have any ideas about how to solve this issue? Additionally, could I provide other information to help track down the issue further?
Sometimes callbacks aren't attached it seems.
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- BrotSagtMist
- Party member
- Posts: 657
- Joined: Fri Aug 06, 2021 10:30 pm
Re: Sometimes callbacks aren't attached it seems.
Add this for more debug.
For me this starts with:
visible, mousefocus, focus. Check if any of the three is missing.
Code: Select all
local a,b,c,d,e
repeat
a,b,c,d,e=love.event.wait()
print(a,b,c,d,e)
until a=="keypressed"
visible, mousefocus, focus. Check if any of the three is missing.
obey
Who is online
Users browsing this forum: Bing [Bot], Semrush [Bot] and 3 guests