Opened 9 years ago

Last modified 5 years ago

#2940 new defect

SDL2: mouse cursor not showing or disappears (ouch)

Reported by: jwf1776 Owned by:
Priority: Should Have Milestone: Backlog
Component: Core engine Keywords:
Cc: Patch:

Description (last modified by historic_bruno)

there are several different ways this bug can occur, but the basic scenario is that when you start up the game, there is no cursor at the menu or there is a cursor until you are several minutes into multiplayer and the cursor disappears.

background here: http://www.wildfiregames.com/forum/index.php?showtopic=19236

setting 'nohwcursor = true' will sometimes help (like make the cursor appear on launch when there was none before). BUT, it isn't a real workaround because the cursor disappears after a couple minutes of game play.

-i also note that the keyboard doesn't work for navigating the menus, this makes the mouse issue more frustrating to those affected.

-is there a relevant terminal command to re-draw cursor while in game?

Change History (12)

comment:1 by jwf1776, 9 years ago

Description: modified (diff)

todays bug symptoms detail:

intel hd 4000 graphics

i have the

comment:2 by jwf1776, 9 years ago

Description: modified (diff)

comment:3 by jwf1776, 9 years ago

Description: modified (diff)

comment:4 by Stan, 9 years ago

Maybe related to cursor being not constantly reset ?

comment:5 by historic_bruno, 9 years ago

According to the forum discussion, another workaround is to run the game in windowed mode.

comment:6 by Stan, 9 years ago

Is that a linux only problem → could it be fixed by SDL2 ?

in reply to:  6 comment:7 by historic_bruno, 9 years ago

Replying to stanislas69:

Is that a linux only problem → could it be fixed by SDL2 ?

If you read the link, you will see they are using Windows :P I think this should be reported upstream to SDL, but I can't reproduce it here.

comment:8 by historic_bruno, 9 years ago

Here's what SDL Wiki says about it:

My mouse cursor disappears when in fullscreen mode!

This happens because you're directly accessing the video memory, and the video driver doesn't support hardware cursor overlays. Simply create the cursor as a sprite and blit it onto the screen where the mouse cursor coordinates are.

No idea if that applies to SDL2, and it seems weird, how would you know if the driver supported hardware cursors, isn't that kind of detail supposed to be abstracted away by SDL? I looked through their bug tracker and didn't see anything relevant.

comment:9 by historic_bruno, 9 years ago

Keywords: cursor removed
Milestone: Alpha 18Backlog
Summary: mouse cursor not showing or disappears (ouch)SDL2: mouse cursor not showing or disappears (ouch)

comment:10 by fabio, 9 years ago

#2871 is a duplicate.

comment:11 by Imarok, 5 years ago

Component: UI & SimulationCore engine

Move tickets to their correct component.

comment:12 by historic_bruno, 5 years ago

Description: modified (diff)

Anyone seen this recently? Lots of changes since this was reported.

Note: See TracTickets for help on using tickets.