English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 01 September 2018, 21:43   #1
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 3,169
Strange mouse issue (left/right pointer movement on button presses)

This is a bit of a strange one...

Testing on Windows 10 1709 x64. In the Game ports panel, Port 1 is set to Windows Mouse. After booting to Workbench I can move the mouse OK.

On pressing the left button, in addition to the emulated Amiga seeing the button press, the mouse pointer moves slowly/steadily to the left. And on pressing the right button, the button press is recognised but the pointer also moves slowly/steadily to the right.

After changing from Windows Mouse to "Microsoft USB Wheel Mouse Optical" (which is the USB mouse I have connected), there's no bogus mouse movement when the buttons are pressed.

Maybe I screwed up something in the config to cause this problem? Config and log on booting:
Code:
http://www.media!fire.com/file/s4yllp3xat9pxu7/Strange_mouse_issue.zip/file
mark_k is offline  
Old 02 September 2018, 18:41   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 45
Posts: 23,814
I think this was reported previously, for some reason Windows sends weird mouse move events when button is pressed if mouse emulation is using windows messages (not rawinput). I can't duplicate it.

I added new log option (-winmouselog), which logs mouse related Windows messages (only if message is going to affect Amiga state, for example right click = untrap is not logged). Check if unexpected WM_MOUSEMOVE messages are logged.
Toni Wilen is offline  
Old 02 September 2018, 21:05   #3
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 3,169
Just tested with -winmouselog. It didn't really give any useful info. Extract below. The WM_MOUSEMOVE lines correspond to my actually moving the mouse. With the mouse stationary, pressing then releasing the left button just prints WM_LBUTTONDOWN then WM_LBUTTONUP, even though the on-screen pointer moves to the left while the button is pressed. Similarly for the right button.

WM_MOUSEMOVE MON=0 NUM=0 ACT=1 FOCUS=1 CLIP=1 CAP=0 FS=0 1709x1041 404x38
WM_MOUSEMOVE MON=0 NUM=0 ACT=1 FOCUS=1 CLIP=1 CAP=0 FS=0 1709x1043 404x39
WM_MOUSEMOVE MON=0 NUM=0 ACT=1 FOCUS=1 CLIP=1 CAP=0 FS=0 1709x1044 404x41
WM_LBUTTONDOWN
WM_LBUTTONUP
WM_RBUTTONDOWN
WM_RBUTTONUP
WM_LBUTTONDOWN
WM_LBUTTONUP
WM_RBUTTONDOWN
WM_RBUTTONUP


Edit to add: Not sure if this helps, but...

Press & hold LMB. Mouse pointer moves steadily left. Press & hold RMB (so both buttons are pressed). Now pointer moves steadily right. Release LMB (so only RMB is still pressed). Mouse pointer stops.

Also, while the bogus pointer movement is happening, if I move the mouse (so WM_MOUSEMOVE is shown in log), the bogus movement stops.

Also, sometimes pressing & holding LMB/RMB causes the pointer to jump/move slightly left or right and stop. If I then release and press that button again, the pointer moves steadily.

Last edited by mark_k; 02 September 2018 at 21:12.
mark_k is offline  
Old 02 September 2018, 21:11   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 45
Posts: 23,814
Hmm.. Include also -inputlog 2 -inputdevicelog 1.
Toni Wilen is offline  
Old 02 September 2018, 21:17   #5
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 3,169
With -winmouselog -inputlog 2 -inputdevicelog 1, here's the last actual mouse movement, then hold LMB (bogus pointer movement left), release, hold RMB (bogus pointer movement right), release.

WM_MOUSEMOVE MON=0 NUM=0 ACT=1 FOCUS=1 CLIP=1 CAP=0 FS=0 1172x1061 -132x61
STATE=-0001 MAX=00000 AF=0 QUAL=000000 'Mouse1 Horizontal'
STATE=-0002 MAX=00000 AF=0 QUAL=000000 'Mouse1 Vertical'
00010039 0000 0001 0000 00000000 0 0 00000000 M=2 F=2
STATE=00001 MAX=00001 AF=0 QUAL=000000 'Mouse1 Left'
WM_LBUTTONDOWN
STATE=00001 MAX=00001 AF=0 QUAL=000000 'Joy1 Fire/Mouse1 Left Button'
00010039 0000 0002 0000 00000000 0 0 00000000 M=2 F=2
STATE=00000 MAX=00001 AF=0 QUAL=000000 'Mouse1 Left'
WM_LBUTTONUP
STATE=00000 MAX=00001 AF=0 QUAL=000000 'Joy1 Fire/Mouse1 Left Button'
00010039 0000 0004 0000 00000000 0 0 00000000 M=2 F=2
STATE=00001 MAX=00001 AF=0 QUAL=000000 'Mouse1 Right'
WM_RBUTTONDOWN
STATE=00001 MAX=00001 AF=0 QUAL=000000 'Joy1 2nd Button/Mouse1 Right Button'
00010039 0000 0008 0000 00000000 0 0 00000000 M=2 F=2
STATE=00000 MAX=00001 AF=0 QUAL=000000 'Mouse1 Right'
WM_RBUTTONUP
STATE=00000 MAX=00001 AF=0 QUAL=000000 'Joy1 2nd Button/Mouse1 Right Button'
mark_k is offline  
Old 02 September 2018, 21:45   #6
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 45
Posts: 23,814
Your config has these lines:

Code:
input.1.mouse.1.axis.0=MOUSE1_HORIZ.0
input.1.mouse.1.axis.1=MOUSE1_VERT.0
input.1.mouse.1.button.0=MOUSE1_LEFT.0
input.1.mouse.1.button.1=MOUSE1_RIGHT.0
MOUSE1_LEFT is left movement, not left button.
Toni Wilen is offline  
Old 03 September 2018, 15:29   #7
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 3,169
Thanks! I wonder how long those have been in the config. (I recently tested another mouse, so changed from MS USB Wheel Mouse Optical then.)

I can see anywhere in the GUI that shows the incorrect mappings.
mark_k is offline  
Old 05 September 2018, 19:12   #8
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 45
Posts: 23,814
You should see it in Input panel (config #1) -> select matching mouse. Mouse Left and Right should be mapped to left and right buttons.
Toni Wilen is offline  
Old 05 September 2018, 19:53   #9
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 3,169
Aha, found it. It was under "Microsoft USB Wheel Mouse Optical" not "Windows Mouse", even though with "Microsoft USB Wheel Mouse Optical" selected in game ports panel, I didn't have the problem.
mark_k is offline  
Old 05 September 2018, 20:12   #10
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 45
Posts: 23,814
If "game ports panel" is not selected in input panel: Active config = selected Input panel config merged with Game Ports panel settings.
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
Tank mouse - left button not working iddqd support.Hardware 3 20 May 2018 11:15
A2000 left mouse button use in workbench causes mouse to stop responding. gary_nz support.Hardware 5 17 September 2017 10:03
Reverse left/right on mouse movement musojon74 support.Hardware 7 14 February 2016 17:45
Any way to change Radboot Left Mouse Button? fitzsteve project.ClassicWB 8 20 January 2010 22:53
Lost left button on mouse port. fc.studio support.Hardware 2 01 March 2008 02:41

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 06:35.


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