http://bugs.winehq.org/show_bug.cgi?id=26955
Summary: Prince of Persia SoT: control key bindings don't change properly Product: Wine Version: 1.3.18 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-dinput AssignedTo: wine-bugs@winehq.org ReportedBy: jonescaseyb@gmail.com
In the game Prince of Persia: The Sands of Time, if you try to change the keybinding for one of the controls it will always interpret the key as "Pause". For instance, if you press the "m" key, it will be interpreted as "Pause". This applies to any key on the keyboard. However, using mouse buttons works fine.
If you leave the control settings at their default settings, they do work in game. However if you change one, it does not work because it isn't being assigned properly.
My best guess is that the bug lies in whatever function the game calls to listen for a key press in the control settings.
http://bugs.winehq.org/show_bug.cgi?id=26955
Vitaliy Margolen vitaliy-bugzilla@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|directx-dinput |winex11.drv Severity|normal |minor
--- Comment #1 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2011-04-29 09:47:44 CDT --- Not dinput bug. To verify - turn off caps/num/scroll locks.
http://bugs.winehq.org/show_bug.cgi?id=26955
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
--- Comment #2 from GyB gyebro69@gmail.com 2011-04-29 12:37:57 CDT --- I can reproduce the problem on my system in PoP:SoT only when Num/Lock is on. The demo shares the same problem: http://www.gamershell.com/download_4925.shtml
Workaround: turn off Num/Lock.
This appeared in Wine-1.1.15:
3743a1a7ca170c765cd779c61b9e362c5b1c5203 is the first bad commit commit 3743a1a7ca170c765cd779c61b9e362c5b1c5203 Author: Vitaliy Margolen wine-patches@kievinfo.com Date: Sun Feb 1 13:11:46 2009 -0700
dinput: Consume mouse & keyboard events in exclusive mode.
:040000 040000 6ae6b43b3c100af38ed4f27384470dc4d2595bc1 700b35b9bc8fd27239ee8faaed8ca1c10cfc31d4 M dlls
Already mentioned in bug #21158.
I must add that commit 3743a1a7ca170c765cd779c61b9e362c5b1c5203 introduced the issue in a slightly different way (compared to the reported problem): the game always returned <Num/Lock> when I tried to reassign any of the keys. Since around 1.1.17 the game interprets any keys as the <Pause> key.
Fedora 14 32-bit Xorg 1.9.5 Gnome 2.32.0 with Metacity
http://bugs.winehq.org/show_bug.cgi?id=26955
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, regression Status|UNCONFIRMED |NEW URL| |http://www.gamershell.com/d | |ownload_4925.shtml CC| |vitaliy-bugzilla@kievinfo.c | |om, wylda@volny.cz Ever Confirmed|0 |1
--- Comment #3 from Wylda wylda@volny.cz 2011-06-29 09:43:16 CDT ---
Confirmed in comment #2.
http://bugs.winehq.org/show_bug.cgi?id=26955
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |3743a1a7ca170c765cd779c61b9 | |e362c5b1c5203
http://bugs.winehq.org/show_bug.cgi?id=26955
Vitaliy Margolen vitaliy-bugzilla@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|regression | Regression SHA1|3743a1a7ca170c765cd779c61b9 | |e362c5b1c5203 |
--- Comment #4 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2011-11-11 11:39:11 CST --- Not a regression. This is a side affect x11drv sending key trigger key press-release sequences whenever it detects Wine's key state does not correspond to actual system state. The same happens with native dinput, so can't be a regression.
The proper way would be to update global key state directly in server. However this brings an interesting problem of when to use this new global state.
http://bugs.winehq.org/show_bug.cgi?id=26955
Vitaliy Margolen vitaliy-bugzilla@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fernandocarvalhocoelho@gmai | |l.com
--- Comment #5 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2012-01-03 08:14:28 CST --- *** Bug 29281 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=26955
David Finch david@mytsoftware.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |david@mytsoftware.com
http://bugs.winehq.org/show_bug.cgi?id=26955
Vitaliy Margolen vitaliy-bugzilla@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE
--- Comment #6 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2012-02-02 20:56:17 CST --- Duplicate. The other bug already "fixed".
*** This bug has been marked as a duplicate of bug 27374 ***
http://bugs.winehq.org/show_bug.cgi?id=26955
Vitaliy Margolen vitaliy-bugzilla@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2012-02-02 20:56:28 CST --- Closing
http://bugs.winehq.org/show_bug.cgi?id=26955
--- Comment #8 from GyB gyebro69@gmail.com 2012-02-03 09:53:55 CST --- For me, this isn't fixed at all, just tried with 1.4rc2. Why was this marked as a duplicate of bug #27374 ? In Prince of Persia: Sands of Time the problem remained: when I try to change the keybindings, the game interprets the pressed keys as num/lock...unless I turn off num/lock.
http://bugs.winehq.org/show_bug.cgi?id=26955
Vitaliy Margolen vitaliy-bugzilla@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Resolution|DUPLICATE |
--- Comment #9 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2012-02-03 09:59:42 CST --- Hm, the fix was mostly correct and should have addressed this issue. Oh I see, update_lock_state wasn't fixed. It needs to use update_key_state().
Reopening.
http://bugs.winehq.org/show_bug.cgi?id=26955
zippy gohabsgo60@yahoo.ca changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gohabsgo60@yahoo.ca
https://bugs.winehq.org/show_bug.cgi?id=26955
--- Comment #10 from Béla Gyebrószki gyebro69@gmail.com --- Still present in 1.7.38 You have to turn off <Num/Lock> if you want to change the keybindings in Prince of Persia: The Sands of Time.
Fedora 21 XOrg 1.16.3 XFCE 4.10
https://bugs.winehq.org/show_bug.cgi?id=26955
Lunknown SolisX007@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |SolisX007@yahoo.com
--- Comment #11 from Lunknown SolisX007@yahoo.com --- This issue seems fixed to me in wine-1.8.2.
https://bugs.winehq.org/show_bug.cgi?id=26955
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|REOPENED |RESOLVED
--- Comment #12 from Austin English austinenglish@gmail.com --- (In reply to Lunknown from comment #11)
This issue seems fixed to me in wine-1.8.2.
Reported fixed.
https://bugs.winehq.org/show_bug.cgi?id=26955
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #13 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.9.9.