English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 10 March 2013, 02:01   #1
Sigma
Registered User
 
Join Date: Oct 2008
Location: Somewhere
Posts: 26
Logitech Precision gamepad hasn't worked since 2.3.3

WinUAE is not receiving input correctly from my Logitech Precision gamepad. The X/Y axis (for left/right and up/down) are triggering a button 1 event. In some versions, it alternates button 1 / axis, and in some versions, it fires both events at once. (The button 1 and button 2 events are working properly.)

The gamepad works as expected with other programs, and responds as expected in Windows' calibration.

Using the test / remap functions in WinUAE, the gamepad works as expected in version 2.3.3, but has been broken since 2.4.0 (including in 2.6.0 b10). I had no active configuration file while testing.
Sigma is offline  
Old 10 March 2013, 07:55   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
Attach winuaebootlog.txt (run winuae with gamepad plugged in, exit and find the log manually or use Paths panel to open it)
Toni Wilen is online now  
Old 12 March 2013, 08:33   #3
Sigma
Registered User
 
Join Date: Oct 2008
Location: Somewhere
Posts: 26
Please find attached a ZIP File with the logs. I didn't know which version you wanted, so I got a boot log from 2.3.3 and from 2.5.0.
Attached Files
File Type: zip winuaebootlogs.zip (8.0 KB, 163 views)
Sigma is offline  
Old 12 March 2013, 16:18   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
USB HID dump in logs looks fine. (Input method changed to USB HID rawinput in 2.4, old versions used DirectInput which has not been "direct" since Windows ME..)

Do you get both axis and button events if you open Input panel and click Test-button? (Press same axis multiple times to see all events one by one)

EDIT: use 2.5.1 or 2.6 beta.

Last edited by Toni Wilen; 12 March 2013 at 16:26.
Toni Wilen is online now  
Old 13 March 2013, 08:23   #5
Sigma
Registered User
 
Join Date: Oct 2008
Location: Somewhere
Posts: 26
The same problem occurs in 2.5.1 and 2.6.0 b10. In the Test panel, the events alternate axis / button if the axis is repeatedly pressed.
Sigma is offline  
Old 13 March 2013, 19:19   #6
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
Hmm.. Does not feel like input receiving bug but some kind of default mapping bug.

Could you take a screenshot of input panel input target/source/etc window that shows your game pad config?
Toni Wilen is online now  
Old 17 March 2013, 09:19   #7
Sigma
Registered User
 
Join Date: Oct 2008
Location: Somewhere
Posts: 26
I hope these are the screenshots you wanted. They were taken from 2.5.1.

I observed that in the Input panel, pressing the axis briefly flashed a "Joy2 Left" (or direction as appropriate) event before showing "Joy2 Fire".

EDIT:
Quote:
Do you get both axis and button events if you open Input panel and click Test-button? (Press same axis multiple times to see all events one by one)
Now I realised what you meant when you asked this. I was previously looking at the Game Ports panel and not the Input panel. As I just mentioned, yes, it shows both events.
Attached Files
File Type: zip Screenshots.zip (376.8 KB, 207 views)
Sigma is offline  
Old 17 March 2013, 11:31   #8
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
Still nothing obviously wrong. Must be something in USB packet decoding or this pad does something weird.. (Does it use standard Windows USB HID driver or does it use custom Logitech driver?)

More complex testing needed:

run winuae with -log -inputlog 4 command line parameters ("winuae.exe -log -inputlog 4")

Boot some default A500 or A1200 config (+pad enabled), no need for boot disk. Wait for WB insert disk screen.

Move dpad and press buttons, each change in pad's state should output hexadecimal log line (raw usb hid packet)

If log appears normally and each movement outputs new log line, quit emulator, run it again and do following sequence:

- full left
- release
- full right
- release
- full up
- release
- full down
- release
- press button 1
- release
- press button 2
- release
(same for all buttons)

Quit winae, attach winuaelog.txt.
Toni Wilen is online now  
Old 18 March 2013, 08:38   #9
Sigma
Registered User
 
Join Date: Oct 2008
Location: Somewhere
Posts: 26
Quote:
Originally Posted by Toni Wilen View Post
Still nothing obviously wrong. Must be something in USB packet decoding or this pad does something weird.. (Does it use standard Windows USB HID driver or does it use custom Logitech driver?)
It uses Windows drivers (HID-compliant game controller and USB Input Device).

Please find attached the log file you requested. I performed the steps as you described them. There are 10 numbered buttons on the controller in addition to the axis.
Attached Files
File Type: zip winuaelog.zip (3.0 KB, 163 views)
Sigma is offline  
Old 18 March 2013, 15:57   #10
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
Argh.. This was something too stupid..

Does http://www.winuae.net/files/b/winuae.zip work?
Toni Wilen is online now  
Old 19 March 2013, 08:25   #11
Sigma
Registered User
 
Join Date: Oct 2008
Location: Somewhere
Posts: 26
It fixes the problem - the axis no longer seems to generates a button 1 event.

Unfortunately, it introduced another: If the axis is held in any direction, button 1 (fire) events are no longer received. (So that means you cannot, e.g. move and fire at the same time.)
I don't know if it affects other buttons as well; I cannot think of any programs I have that make use of two joystick buttons.
Sigma is offline  
Old 19 March 2013, 16:55   #12
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
winuae.zip updated. Hopefully it really works now..
Toni Wilen is online now  
Old 20 March 2013, 07:59   #13
Sigma
Registered User
 
Join Date: Oct 2008
Location: Somewhere
Posts: 26
Yes, it looks like it works as expected now. I tested it with a quick round of a game that uses a joystick and it worked. I'll give it a proper play-through later, just to be sure.

Thank you for taking the time to investigate and fix this issue!
Sigma is offline  
Old 20 March 2013, 09:29   #14
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
Perfect, thanks!

Last bug was even more stupid, button press was detected correctly but it was also detected as released immediately..
Toni Wilen is online now  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
File timestamps lose precision in shared folders mark_k support.WinUAE 9 06 February 2013 16:25
Know anyone who worked as game dev for the Commodore Amiga? Jonathan Drain Amiga scene 1 21 December 2009 05:11
If the Workbench TOSEC database is still being worked on... MethodGit project.TOSEC (amiga only) 4 05 July 2007 14:20
Team 17 worked on Lemmings? sittingduck Amiga scene 1 20 December 2005 11:05
Logitech Gamepad trouble AdmiralRaccoon support.WinUAE 2 05 January 2003 11:59

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 17:43.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.15479 seconds with 14 queries