http://bugs.winehq.org/show_bug.cgi?id=31737
Bug #: 31737 Summary: Need For Speed Hot Pursuit (2010): Gamepad is not configured Product: Wine Version: 1.5.13 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: vanuan@gmail.com Classification: Unclassified
Steps to reproduce:
1) connect gamepad 2) run nfs 2010 3) go to gameplay settings and assign gamepad keys 4) go to menu and press a gamepad key.
Expected: No messages appear when pressing gamepad keys
Actual: The message "Controller was not configured ..." appears.
Will attach the "WINEDEBUG=+joystick" logs later.
http://bugs.winehq.org/show_bug.cgi?id=31737
John Yani vanuan@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |directx-dinput
http://bugs.winehq.org/show_bug.cgi?id=31737
--- Comment #1 from Austin English austinenglish@gmail.com 2012-09-19 12:47:50 CDT --- The debug channel is +dinput, not +joystick.
http://bugs.winehq.org/show_bug.cgi?id=31737
--- Comment #2 from John Yani vanuan@gmail.com 2012-09-19 13:48:26 CDT --- According to http://wiki.winehq.org/DebugChannels joystick is a valid debug channel. Ok, I'll submit dinput
http://bugs.winehq.org/show_bug.cgi?id=31737
--- Comment #3 from John Yani vanuan@gmail.com 2012-09-19 14:27:43 CDT --- Nothing suspicious in the logs:
... trace:dinput:fill_DataFormat Copying (i) to 252 default value 0 trace:dinput:fill_DataFormat Copying (i) to 256 default value 0 trace:dinput:fill_DataFormat Copying (i) to 260 default value 0 trace:dinput:fill_DataFormat Copying (i) to 24 default value 0 trace:dinput:fill_DataFormat Copying (i) to 28 default value 0 trace:dinput:JoystickWGenericImpl_Poll (0x6df22700) trace:dinput:joy_polldev input_event: type 3, code 2, value 116 trace:dinput:joystick_map_axis (0 <0> 255) -> (0 <0> 65535): val=-11 ret=29940 trace:dinput:joy_polldev input_event: type 0, code 0, value 0 trace:dinput:joy_polldev input_event: type 3, code 2, value 119 trace:dinput:joystick_map_axis (0 <0> 255) -> (0 <0> 65535): val=-8 ret=30711 trace:dinput:joy_polldev input_event: type 0, code 0, value 0 trace:dinput:JoystickWGenericImpl_GetDeviceState (0x6df22700,0x00000110,0x33f644) trace:dinput:fill_DataFormat Copying (i) to 0 from 0 (value 31739) trace:dinput:fill_DataFormat Copying (i) to 4 from 4 (value 32767) trace:dinput:fill_DataFormat Copying (i) to 8 from 8 (value 30711) trace:dinput:fill_DataFormat Copying (i) to 20 from 20 (value 33024) trace:dinput:fill_DataFormat Copying (i) to 32 from 32 (value 9000) trace:dinput:fill_DataFormat Copying (c) to 48 from 48 (value 0) trace:dinput:fill_DataFormat Copying (c) to 49 from 49 (value 0) trace:dinput:fill_DataFormat Copying (c) to 50 from 50 (value 0) trace:dinput:fill_DataFormat Copying (c) to 51 from 51 (value 0) trace:dinput:fill_DataFormat Copying (c) to 52 from 52 (value 0) ...
The only dinput fixmes I see is the following:
fixme:dinput:IDirectInputDevice2WImpl_GetProperty Unknown property <guid-0x0013> fixme:dinput:IDirectInputDevice2WImpl_GetProperty Unknown property <guid-0x0012> fixme:dinput:IDirectInputDevice2WImpl_GetProperty Unknown property <guid-0x0013> fixme:dinput:IDirectInputDevice2WImpl_GetProperty Unknown property <guid-0x0012> fixme:dinput:IDirectInputDevice2WImpl_GetProperty Unknown property <guid-0x0013> fixme:xinput:XInputGetState (0 0x698ae944)
Any thoughts what can cause this?
http://bugs.winehq.org/show_bug.cgi?id=31737
--- Comment #4 from John Yani vanuan@gmail.com 2012-09-19 15:12:43 CDT --- I've found a workaround. In the game there are three input devices: Keyboard Logitech Dual Action (event) - this is my gamepad A4Tech USB device (js) - this is my keyboard
When I assign any button for A4Tech USB device (js), the message doesn't appear.
http://bugs.winehq.org/show_bug.cgi?id=31737
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lfzawacki@yahoo.com.br
--- Comment #5 from Austin English austinenglish@gmail.com 2012-09-19 15:25:05 CDT --- Actually, yeah, it is: dlls/winejoystick.drv/joystick.c:WINE_DEFAULT_DEBUG_CHANNEL(joystick);
I'm not sure which is more useful. Lucas is the guy for that :).
http://bugs.winehq.org/show_bug.cgi?id=31737
--- Comment #6 from Lucas Fialho Zawacki lfzawacki@yahoo.com.br 2012-09-25 08:48:35 CDT --- (In reply to comment #4)
I've found a workaround. In the game there are three input devices: Keyboard Logitech Dual Action (event) - this is my gamepad A4Tech USB device (js) - this is my keyboard
When I assign any button for A4Tech USB device (js), the message doesn't appear.
Based on this I would say it has something to do with your keyboard being detected as a joystick and then havin no assigments. You can try disabling it using the "Game Controllers" panel applet as a workaround.
(In reply to comment #3)
The only dinput fixmes I see is the following:
fixme:dinput:IDirectInputDevice2WImpl_GetProperty Unknown property
<guid-0x0013> fixme:dinput:IDirectInputDevice2WImpl_GetProperty Unknown property <guid-0x0012> fixme:dinput:IDirectInputDevice2WImpl_GetProperty Unknown property <guid-0x0013> fixme:dinput:IDirectInputDevice2WImpl_GetProperty Unknown property <guid-0x0012> fixme:dinput:IDirectInputDevice2WImpl_GetProperty Unknown property <guid-0x0013> fixme:xinput:XInputGetState (0 0x698ae944)
Any thoughts what can cause this?
These unimplemented properties could have something to do with it, one of them is the device name and the game could be using it to choose the devices it's using or something like that. I'll try to add them and make some tests and then you can try to retest again with NFS Hot Pursuit
http://bugs.winehq.org/show_bug.cgi?id=31737
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com
--- Comment #7 from Bruno Jesus 00cpxxx@gmail.com 2012-10-11 19:26:56 CDT --- A patch related to this bug was commited: http://source.winehq.org/git/wine.git/?a=commit;h=478f0b6691d221ecb4fd0f4ff6...
Please give the bug a new try.
http://bugs.winehq.org/show_bug.cgi?id=31737
--- Comment #8 from John Yani vanuan@gmail.com 2012-11-25 11:45:05 CST --- Don't know whether it's related or not, but the game crashes after I updated to wine 1.5.17
To fix this I have to either start wine with a new WINEPREFIX
or remove the "Documents/Criterion Games/Need for Speed(TM)\ Hot Pursuit/Save/Default/controls.NFS11Save" file,
where controls configuration is saved.
http://bugs.winehq.org/show_bug.cgi?id=31737
--- Comment #9 from John Yani vanuan@gmail.com 2012-11-25 12:18:45 CST --- I still see A4tech usb device (js) in the list.
https://bugs.winehq.org/show_bug.cgi?id=31737
--- Comment #10 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to John Yani from comment #9)
I still see A4tech usb device (js) in the list.
Did you try disabling it in the wine control joystick applet as suggested in comment 6?
https://bugs.winehq.org/show_bug.cgi?id=31737
--- Comment #11 from Bruno Jesus 00cpxxx@gmail.com --- Is this still an issue in wine 1.9.16 (or later)? Please attach a new +dinput log if that is the case.
https://bugs.winehq.org/show_bug.cgi?id=31737
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEEDINFO Ever confirmed|0 |1
https://bugs.winehq.org/show_bug.cgi?id=31737
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEEDINFO |RESOLVED Component|directx-dinput |xinput CC| |leslie_alistair@hotmail.com
--- Comment #12 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Using wine 4.11 I am unable to reproduce any issue when using a game pad.
Moved to xinput since dinput doesn't appear to be used at all.
If this is a still an issue, please reopen and state how to reproduce the issue.
https://bugs.winehq.org/show_bug.cgi?id=31737
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #13 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.12.