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 » Sat Jan 06, 2018 10:42 pm

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: 2784
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Hiding cursor at load

Post by slime » Sat Jan 06, 2018 10:56 pm

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 » Sun Jan 07, 2018 1:49 pm

No, I don't see any change. I feel like the cursor is being drawn even before my program is loaded.

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests