Page 1 of 1

Hiding cursor at load

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

Re: Hiding cursor at load

Posted: Sat Jan 06, 2018 10:56 pm
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.

Re: Hiding cursor at load

Posted: Sun Jan 07, 2018 1:49 pm
by kuon
No, I don't see any change. I feel like the cursor is being drawn even before my program is loaded.

Re: Hiding cursor at load

Posted: Thu Apr 01, 2021 5:38 am
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.