Sometimes callbacks aren't attached it seems.

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Nikki
Citizen
Posts: 86
Joined: Wed Jan 25, 2017 5:42 pm

Sometimes callbacks aren't attached it seems.

Post by Nikki »

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?
User avatar
BrotSagtMist
Party member
Posts: 657
Joined: Fri Aug 06, 2021 10:30 pm

Re: Sometimes callbacks aren't attached it seems.

Post by BrotSagtMist »

Add this for more debug.

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"
For me this starts with:
visible, mousefocus, focus. Check if any of the three is missing.
obey
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 5 guests