15 September 2018, 17:11 | #1 |
Registered User
Join Date: Aug 2004
Location:
Posts: 3,343
|
Mouse sonar not disabled when mouse is captured
Windows has a "Mouse Sonar" option. When enabled, animated concentric circles appear around the mouse pointer when Ctrl is pressed. That can be handy for finding the pointer on a large monitor. The user can enable & disable it in Control Panel->Mouse->Pointer Options tab->"Show location of pointer when I press the CTRL key" checkbox
WinUAE doesn't disable mouse sonar when it captures (and blanks) the Windows mouse pointer. So in emulation each press of Ctrl causes the concentric circles animation to show around the invisible Windows mouse pointer. [Testing on Windows 10 1803, the sonar animation doesn't show in exclusive full-screen D3D9 or D3D11 modes. It does appear in windowed, full-window and DirectDraw exclusive full-screen.] If this is something worth bothering with, you could use SystemParametersInfo to fix it. On capturing mouse: Get current setting with SPI_GETMOUSESONAR. If it's enabled, use SPI_SETMOUSESONAR to disable On uncapturing: If we used SPI_SETMOUSESONAR to disable, use SPI_SETMOUSESONAR to enable |
15 September 2018, 17:46 | #2 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,518
|
Using SystemParametersInfo() is bad idea. Applications should never change system global parameters if it wants to only change application local behavior. If program crashes or is killed, original state is not automatically restored.
I am not going to do it unless there is application local option. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A2000 left mouse button use in workbench causes mouse to stop responding. | gary_nz | support.Hardware | 5 | 17 September 2017 10:03 |
Mouse click problem with cintiq companion and virtual mouse driver | donmikko | support.WinUAE | 9 | 19 February 2017 11:32 |
Amiga Mouse Original Tank Mouse Optical sensor Faulty Help please. | Audronic | support.Hardware | 5 | 01 February 2017 09:42 |
MOUSE ADAPTER MADNESS! Less than half price PS/2 mouse adapters! | Mounty | MarketPlace | 6 | 01 September 2015 21:47 |
Bug: Mouse still captured when selecting "start mouse uncaptured" | scoobydude512 | support.WinUAE | 1 | 24 June 2013 10:28 |
|
|