http://bugs.winehq.org/show_bug.cgi?id=33261
Bug #: 33261 Summary: Sims 3 pause key (`) doesn't work with Spanish keyboard Product: Wine Version: 1.5.26 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: cymerio@gmail.com Classification: Unclassified
Created attachment 43992 --> http://bugs.winehq.org/attachment.cgi?id=43992 Output log of "The Sims 3" with "WINEDEBUG=+key,+keyboard"
In the game "The Sims 3" the pause command is assigned to 3 keys: 0, P and ` (the key to the left of "1", which in a Spanish keyboards outputs "º").
In Wine 1.5.6 and 1.5.26 (openSUSE 12.2) pressing that key with a Spanish keyboard causes no effect (i.e. doesn't pause the game). It used to work before IIRC. The keyboard is a standard Spanish keyboard (QWERTY 105 keys + Sleep button).
Additionally, the key "ç" now pauses the game too (it shouldn't). The "ç" key (ccedilla) is the 3rd key to the right of the L, and left to the Enter key.
Pressing these keys in "xev" outputs: º => keycode 49 (keysym 0xba, masculine) ç => keycode 51 (keysym 0xe7, ccedilla)
Editing in Notepad works fine.
There is a log attached which shows the output of runing The Sims 3 with "WINEDEBUG=+key,+keyboard".
Some interesting lines:
trace:keyboard:X11DRV_KEYBOARD_DetectLayout Attempting to match against "Spanish keyboard layout" trace:key:X11DRV_KEYBOARD_DetectLayout mismatch for keycode 126, got ?? trace:key:X11DRV_KEYBOARD_DetectLayout mismatch for keycode 187, got (( trace:key:X11DRV_KEYBOARD_DetectLayout mismatch for keycode 188, got )) trace:keyboard:X11DRV_KEYBOARD_DetectLayout matches=48, mismatches=3, seq=47, score=84 [...] warn:keyboard:X11DRV_KEYBOARD_DetectLayout Using closest match (Spanish keyboard layout) for scan/virtual codes mapping. trace:keyboard:X11DRV_KEYBOARD_DetectLayout detected layout is "Spanish keyboard layout" [...] trace:keyboard:X11DRV_InitKeyboard keycode 49 => vkey 0000 trace:keyboard:X11DRV_InitKeyboard keycode 50 => vkey 00A0 trace:keyboard:X11DRV_InitKeyboard keycode 51 => vkey 0000 [...] trace:keyboard:X11DRV_InitKeyboard spare virtual key 00C0 assigned to keycode 51: trace:keyboard:X11DRV_InitKeyboard (e7 (ccedilla) c7 (Ccedilla) 0 (NoSymbol) 0 (NoSymbol) fe55 (dead_breve) 0 (NoSymbol) 0 (NoSymbol) ) trace:keyboard:X11DRV_InitKeyboard keycode 51 => vkey 00C0 [...] trace:key:X11DRV_InitKeyboard assigning scancode 62 to unidentified keycode 49 (masculine) trace:key:X11DRV_InitKeyboard assigning scancode 63 to unidentified keycode 51 (ccedilla) [...] trace:keyboard:X11DRV_KEYBOARD_DetectLayout XKB could not translate keysym 00ba trace:keyboard:X11DRV_KEYBOARD_DetectLayout XKB could not translate keysym 00aa trace:keyboard:KEYBOARD_MapDeadKeysym no character for dead keysym 0x0000ffe1 trace:keyboard:KEYBOARD_MapDeadKeysym no character for dead keysym 0x0000ffe1 trace:keyboard:X11DRV_KEYBOARD_DetectLayout XKB could not translate keysym 00e7
http://bugs.winehq.org/show_bug.cgi?id=33261
--- Comment #1 from David cymerio@gmail.com 2013-03-23 12:58:37 CDT --- I've done some more experiments and I think I've found a workaround.
The workaround is to set: LC_ALL=es_ES.ISO-8859-1 or LC_ALL=es_ES.ISO-8859-15 before executing Wine.
With this the pause key works, and the in-game text editor works OK too (there is a text editor in the game to edit Sims biographies, etc). Tested these symbols among many others in the text editor: ¡¿çñ€ó.
The idea came from Wine bug #30984 which may be related.
I tested also the command "setxkbmap us" and while it fixed the pause key issue (`) it caused other problems, like the in-game text editor working with US layout.
http://bugs.winehq.org/show_bug.cgi?id=33261
--- Comment #2 from David cymerio@gmail.com 2013-03-23 13:00:24 CDT --- Created attachment 43994 --> http://bugs.winehq.org/attachment.cgi?id=43994 Output log of "The Sims 3" with "LC_ALL=es_ES.ISO-8859-1 WINEDEBUG=+key,+keyboard"
http://bugs.winehq.org/show_bug.cgi?id=33261
--- Comment #3 from David cymerio@gmail.com 2013-03-23 13:01:02 CDT --- Created attachment 43995 --> http://bugs.winehq.org/attachment.cgi?id=43995 Output log of "The Sims 3" with "LC_ALL=es_ES.ISO-8859-15 WINEDEBUG=+key,+keyboard"
https://bugs.winehq.org/show_bug.cgi?id=33261
Marc Bessières marc.bessieres@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |marc.bessieres@gmail.com
--- Comment #4 from Marc Bessières marc.bessieres@gmail.com --- Hello,
This looks like Bug 30984. To confirm, could you check if reverting 43984f355a2905e16075a9df3d7fbe463761e853 makes it work?
If so then, it would be a duplicate.
But your workarounds in comment 1 seem interesting to "The Sims 3" users, so maybe they should be copied to that bug(if it is a duplicate), or in the appdb entry for "The Sims 3".
Cheers, Marc