Hiding cursor at load

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
kuon
Prole
Posts: 2
Joined: Sat Jan 06, 2018 10:39 pm

Hiding cursor at load

Post by kuon »

I am hiding the cursor with:

Code: Select all

function love.load()
   love.mouse.setVisible(false)
end
It works, but the cursor is visible for a second before the game load.

I am on a raspberry pi using SDL rpi video driver (without X11).

Is there a solution? Or should I patch love source code to disable the cursor entirely?
User avatar
slime
Solid Snayke
Posts: 3129
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Hiding cursor at load

Post by slime »

You could try calling love.event.pump() right after the setVisible call. I'm not positive it'll help, but it's worth a shot.
kuon
Prole
Posts: 2
Joined: Sat Jan 06, 2018 10:39 pm

Re: Hiding cursor at load

Post by kuon »

No, I don't see any change. I feel like the cursor is being drawn even before my program is loaded.
User avatar
alberto_lara
Party member
Posts: 372
Joined: Wed Oct 30, 2013 8:59 pm

Re: Hiding cursor at load

Post by alberto_lara »

OK, 3 years later I have this same issue, running LOVE in DietPie + retroarch and I want to never show the cursor.

EDIT: I guess the best solution for this specific case is compiling a modified version, so I'll try that.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 21 guests