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.
-
kuon
- Prole
- Posts: 2
- Joined: Sat Jan 06, 2018 10:39 pm
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?
-
slime
- Solid Snayke
- Posts: 3163
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
-
Contact:
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
Post
by kuon »
No, I don't see any change. I feel like the cursor is being drawn even before my program is loaded.
-
alberto_lara
- Party member
- Posts: 372
- Joined: Wed Oct 30, 2013 8:59 pm
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.
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 4 guests