English Amiga Board

Go Back   English Amiga Board > Support > support.WinUAE

Thread Tools
Old 15 September 2018, 18:11   #1
Registered User
Join Date: Aug 2004
Posts: 2,966
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
mark_k is offline  
Old 15 September 2018, 18:46   #2
Toni Wilen
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 43
Posts: 22,111
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.
Toni Wilen is offline  

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 11:03
Mouse click problem with cintiq companion and virtual mouse driver donmikko support.WinUAE 9 19 February 2017 12:32
Amiga Mouse Original Tank Mouse Optical sensor Faulty Help please. Audronic support.Hardware 5 01 February 2017 10:42
MOUSE ADAPTER MADNESS! Less than half price PS/2 mouse adapters! Mounty MarketPlace 6 01 September 2015 22:47
Bug: Mouse still captured when selecting "start mouse uncaptured" scoobydude512 support.WinUAE 1 24 June 2013 11:28

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 03:23.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.05637 seconds with 13 queries