Remove black mouse cursor

Technical discussion for those interested in Supermodel development and Model 3 reverse engineering. Prospective contributors welcome.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

Remove black mouse cursor

Postby MrLightgun2 » Thu Jul 16, 2020 11:38 am

Hi Everyone

I'm running Supermodel emulator in Hyperspin with bezels. To achieve that it seems to run it in windowed mode. However in windowed mode the emulator shows an annoying black mouse cursor which I believe is the SDL mouse cursor. As the emulator supports crosshairs for all the lightgun games that need a mouse, is this cursor no longer required?

I believe it is generated on line 740 of Main.cpp

Inputs->GetInputSystem()->SetMouseVisibility(!g_Config.fullScreen);

Would it be possible to change this to false in fullscreen AND non-fullscreen?

Is there some use for the black mouse cursor that I have overlooked? If so could it be disabled with a command line parameter instead?

The background to this is that I'm rolling out my Sinden Lightgun to backers very soon and for it to work I need to add a border around the game screen in applicable emulators. There is not an easy way to do this in Supermodel that works on all hardware. However in window mode it is a lot easier to do it BUT then the black mouse cursor appears. I don't really want to create my own branch as I would rather people remain on the main branch for obvious reasons. Could this code change be added to main branch if appropriate please?

Apologies if there is some obvious process for these types of requests that I have missed.

Thank you all for your hardwork with the emulator.

Best regards

Mr Lightgun
MrLightgun2
 
Posts: 1
Joined: Thu Jul 16, 2020 11:00 am

Re: Remove black mouse cursor

Postby Bart » Thu Jul 23, 2020 8:50 pm

That's an interesting suggestion. I would not want the mouse cursor to be gone personally. I wonder if a better idea would be to add a command line option and key combination to toggle mouse pointer rendering?
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada


Return to The Dark Room

Who is online

Users browsing this forum: No registered users and 1 guest