I would like to ask what causes keyboard key scancodes mismatch between Linux and Wine?
The situation is following: I'm using Wine to play some ZX Spectrum games in Spectaculator emulator. These games are keyboard controlled and read key scancodes. Soon I realized that the default game controls aren't work. The keys are messed. For example, S works as D, D as F, F -> G, G -> H, V -> S, ? -> V. Same games under Linux works fine.
If I launch notepad.exe in wine and type some text the result is correct. But apps that rely on scancodes are confused.
If I execute `sudo showkey -s` in linux and type s, d, f I'll get 0x1f, 0x20, 0x21 scancodes.
But if I launch Keyboard Test by PassMark in Wine I'm getting scancodes 0x20, 0x21, 0x22
So Wine modifies keyboard scancodes....
Is this a Wine's bug?
Code: Select all
$ wine --version
wine-6.0-rc4 (Staging)
Operating System: Kubuntu 20.10
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.14.2
Kernel Version: 5.8.0-33-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i7-3520M CPU @ 2.90GHz
Memory: 7,6 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4000