http://bugs.winehq.org/show_bug.cgi?id=30690
Bug #: 30690 Summary: no mouse or keyboard in orcs must die Product: Wine Version: 1.5.4 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-dinput AssignedTo: wine-bugs@winehq.org ReportedBy: felix@compsoc.nuigalway.ie Classification: Unclassified
The game "Orcs must die!" no longer detects keyboard and mouse input.
Initially the mouse cursor (sword) is shown on the first splash screen and can be moved, but by the time it has cycled through the various splash videos and arrived at the menu, there is no longer a cursor and keyboard input is limited to the down arrow, enter and escape.
Using the limited keyboard keys you can access the settings -> controls sub menu to see it show an Xbox controller as the expected input. It should show a keyboard and mouse layout graphic with the various control keys highlighted
This used to work before, regression occurred with commit a84d2fe20e5479fae8ea9660167ebfac95eafa99 dinput: Stub IDirectInputJoyConfig8 interface.
87a770fa732cfb1088a074f34c8e2075f827199a is the last known good commit
To test you can revert the following 4 commits in order to get a clean revert: 7260132c5d8aa0aa753c12d1e7420c307e651359 dinput: Fix device enumeration by DX8 device type. 699da40d1bb24220050271eea3ddc8cddbd8bcb8 dinput: Add more error checking to IDirectInput_GetDeviceStatus. 310859db675e4b995a56a7578b22b9c3eadb9949 dinput: Add more parameter checking to enum devices. a84d2fe20e5479fae8ea9660167ebfac95eafa99 dinput: Stub IDirectInputJoyConfig8 interface.
Removing all 4 commits on top of 1.5.4, allows the game to correctly detect keyboard and mouse
http://bugs.winehq.org/show_bug.cgi?id=30690
Darragh Bailey felix@compsoc.nuigalway.ie changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression Regression SHA1| |a84d2fe20e5479fae8ea9660167 | |ebfac95eafa99
http://bugs.winehq.org/show_bug.cgi?id=30690
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |vitaliy-bugzilla@kievinfo.c | |om
http://bugs.winehq.org/show_bug.cgi?id=30690
Lucas Fialho Zawacki lfzawacki@yahoo.com.br changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lfzawacki@yahoo.com.br
http://bugs.winehq.org/show_bug.cgi?id=30690
--- Comment #1 from Lucas Fialho Zawacki lfzawacki@yahoo.com.br 2012-07-16 22:19:49 CDT --- I tested for this bug with the "Orcs Must Die!" Steam version using Wine 1.5.8 and I can not reproduce. Mouse and keyboard seem to work just fine.
I tried it with a joystick connected to see if it could be a problem, but it works as expected too. The game does hide the mouse pointer when I start pressing the joystick, but it comes back if I touch the mouse again.
OP should retest with newest wine. If the bug is still present post more details. For starters what is the game version, if there's any extra controllers connected and a +dinput log.
http://bugs.winehq.org/show_bug.cgi?id=30690
--- Comment #2 from Darragh Bailey felix@compsoc.nuigalway.ie 2012-07-25 15:29:25 CDT --- Created attachment 41161 --> http://bugs.winehq.org/attachment.cgi?id=41161 dinput log
Tested again with 1.5.9 and I still see the problem.
Wonder if it's connected to my hardware?
Have a g19 keyboard and g500 mouse. Noticed that Linux detects that my keyboard as having 2 joystick devices, I only see 1 d-pad on the keyboard, so not sure what else is being picked up.
Noticed this in the log: trace:dinput:IDirectInputAImpl_EnumDevices - checking device 3 ('Wine Linux joystick driver') trace:dinput:find_joystick_devices Found a joystick on /dev/input/js0: gnome15-joystick with 2 axes and 8 buttons trace:dinput:find_joystick_devices Found a joystick on /dev/input/js1: gnome15-digital-joystick with 2 axes and 8 buttons
Note log file is ~220MB in size, compressed to <500k
Any ideas on what is going on?
http://bugs.winehq.org/show_bug.cgi?id=30690
--- Comment #3 from Lucas Fialho Zawacki lfzawacki@yahoo.com.br 2012-07-25 16:29:02 CDT --- (In reply to comment #2)
Wonder if it's connected to my hardware?
Have a g19 keyboard and g500 mouse. Noticed that Linux detects that my keyboard as having 2 joystick devices, I only see 1 d-pad on the keyboard, so not sure what else is being picked up.
I think so. I noticed that when the game finds a joystick it defaults to it and stops keyboard/mouse input so the fact that linux sees these as joysticks must be screwing you over. Try to "chmod 000" these /dev/input/js* devices and see what happens.
If this solves the problem you can try to define some rules in your X11 configuration to ignore these devices as a workaround.
http://bugs.winehq.org/show_bug.cgi?id=30690
--- Comment #4 from Darragh Bailey felix@compsoc.nuigalway.ie 2012-08-02 17:22:21 CDT --- (In reply to comment #3)
I think so. I noticed that when the game finds a joystick it defaults to it and stops keyboard/mouse input so the fact that linux sees these as joysticks must be screwing you over.
so wait, earlier you stated: "I tried it with a joystick connected to see if it could be a problem, but it works as expected too. The game does hide the mouse pointer when I start pressing the joystick, but it comes back if I touch the mouse again."
Which is it? I'm sure I recall playing this game in a cafe on a windows machine with an xbox controller plugged in and I had no problem using the keyboard and mouse, which is why the idea of the keyboard and mouse working again as soon as you touch them makes sense.
Certainly the non-functioning behaviour, or rather limited input response whenever the game sees a joystick seems to be incorrect.
Try to "chmod 000" these /dev/input/js* devices and see what happens.
If this solves the problem you can try to define some rules in your X11 configuration to ignore these devices as a workaround.
Indeed, turns out the two js* devices where root:root 644 and a simple 'chmod o-r /dev/input/js*' as root before starting wine solved the problem.
What's the correct behaviour here? it still seems like the game should work just fine even with the extra joystick devices being picked up.
http://bugs.winehq.org/show_bug.cgi?id=30690
--- Comment #5 from Lucas Fialho Zawacki lfzawacki@yahoo.com.br 2012-08-02 21:16:14 CDT --- (In reply to comment #4)
Certainly the non-functioning behaviour, or rather limited input response whenever the game sees a joystick seems to be incorrect.
I think I mislead you with my bad wording. From what I gather, when the game *receives joystick input* it stops keyboard/mouse input. So you can see the problem, your mouse device is at the same time a mouse and a joystick and using it both cancels and enables mouse input.
Anyway I'm working on a way to disable specific bad devices using the 'Game Controllers' control panel applet. When it's ready you may find it useful to solve this kind of problem with mouses that are also joysticks.
http://bugs.winehq.org/show_bug.cgi?id=30690
--- Comment #6 from Lucas Fialho Zawacki lfzawacki@yahoo.com.br 2012-08-24 15:28:35 CDT --- The commits I talked earlier went into Wine today. You can use latest git or wait for 1.5.12 to use the 'Game Controllers' control panel applet and disable these weird joystick devices and see if it solves your problems.
http://bugs.winehq.org/show_bug.cgi?id=30690
Darragh Bailey felix@compsoc.nuigalway.ie changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #7 from Darragh Bailey felix@compsoc.nuigalway.ie 2012-09-08 06:43:37 CDT --- Confirmed fixed. Used 'wine control' to open up the control panels and access the joystick cpl. Once the 2 joysticks that were being created for my keyboard were disabled, keyboard and mouse functioned perfectly.
Much appreciated.
http://bugs.winehq.org/show_bug.cgi?id=30690
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |78c8fe0db2041f6eec3a5863613 | |54cd44bfdd2b1 CC| |00cpxxx@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=30690
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Alexandre Julliard julliard@winehq.org 2012-09-14 13:33:29 CDT --- Closing bugs fixed in 1.5.13.