10 March 2013, 02:01 | #1 |
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. |
10 March 2013, 07:55 | #2 |
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)
|
12 March 2013, 08:33 | #3 |
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.
|
12 March 2013, 16:18 | #4 |
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. |
13 March 2013, 08:23 | #5 |
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.
|
13 March 2013, 19:19 | #6 |
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? |
17 March 2013, 09:19 | #7 | |
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:
|
|
17 March 2013, 11:31 | #8 |
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. |
18 March 2013, 08:38 | #9 | |
Registered User
Join Date: Oct 2008
Location: Somewhere
Posts: 26
|
Quote:
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. |
|
18 March 2013, 15:57 | #10 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
|
19 March 2013, 08:25 | #11 |
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. |
19 March 2013, 16:55 | #12 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
winuae.zip updated. Hopefully it really works now..
|
20 March 2013, 07:59 | #13 |
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! |
20 March 2013, 09:29 | #14 |
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.. |
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 |
|
|