https://bugs.winehq.org/show_bug.cgi?id=43010
Bug ID: 43010 Summary: Wine does not pass scancodes properly Product: Wine Version: 2.7 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: hid Assignee: wine-bugs@winehq.org Reporter: ilmaisin@openmailbox.org Distribution: ---
Wine does not seem to pass the scancodes properly to the Win32 apps.
- On Ubuntu 16.04's Unity desktop, Win32 apps see the situation like the keyboard was physically rewired to the layout that is currently active.
- On Gnome 3 other hand, it looks like the keyboard was physically rewired to the uppermost option in the Gnome's keyboard layout configuration (!).
In all cases, the apps that use resulting characters instaed of scancodes work well, receiving those letters that they are supposed to. Also, xev receives the proper scancodes.
Please modify Wine so that it will pass the actual, real, physical scancodes to the apps requiring them. This is absolutely essential for gaming with non-US and/or non-QWERTY keyboard layouts.
https://bugs.winehq.org/show_bug.cgi?id=43010
--- Comment #1 from Iiro Laiho ilmaisin@openmailbox.org --- https://wiki.winehq.org/Wine_Developer%27s_Guide/Windowing_system#Keyboard_m...
Apparently Wine translates the mapped characters to scancodes in a some weird method that involves layouts hard-coded to the Wine source code and guessing the keyboard layout. It's not really a very robust way to do that. At least on PC/Linux platform it IMO would be better to just pass the actual scancodes as they are readily available.
https://bugs.winehq.org/show_bug.cgi?id=43010
--- Comment #2 from Iiro Laiho ilmaisin@openmailbox.org --- Oops, I was confusing scancodes and keycodes. Scancodes are converted to keycodes and then they are converted to characters. IMO wine should convert X11 keycodes directly back to scancodes since neither of them are dependent on locale. Now wine seems to do something much more complicated and error prone.
https://bugs.winehq.org/show_bug.cgi?id=43010
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|hid |-unknown
--- Comment #3 from Dmitry Timoshkov dmitry@baikal.ru --- Perhaps reverting the commit that has caused the regression in the bug 15350 may help?
https://bugs.winehq.org/show_bug.cgi?id=43010
Iiro Laiho ilmaisin@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE
--- Comment #4 from Iiro Laiho ilmaisin@openmailbox.org --- Marked as duplicate of bug mentioned by Dmitry Timoshkov, did not notice that.
*** This bug has been marked as a duplicate of bug 15350 ***
https://bugs.winehq.org/show_bug.cgi?id=43010
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Austin English austinenglish@gmail.com --- Closing.