Emulator Issues #12478
closed[Windows 10] Keyboard sometimes doesn't work as intended
0%
Description
For a while now, whenever I use Dolphin on my ASUS Windows 10 laptop, sometimes the emulator sometimes refuses to accept any inputs from the keyboard (DInput/0/Keyboard Mouse) after launching a game, only allowing me to either use system native shortcut keys like ALT+Escape or ALT+F4 (any sort of input from a controller works fine though).
So far I've tried different renderer backends, exclusive and borderless modes, fullscreen or not, render to main window or separate window, toggle "pause on loose focus", toggle between the Ubershader settings, toggle Progressive Scan Mode, and even went as far as setting the compatibility mode to Windows Vista, but nothing.
Also tried to capture a log to see if it would indicate whenever or not the keyboard was properly initializing, but also nothing.
Weird thing is that on the same machine, when running Linux Mint 20.04, the keyboard works just fine (using the latest beta from Flathub).
Updated by sepalani almost 4 years ago
I have the same issue on my MSI Windows 10 laptop (with Dolphin 5.0-13782).
It disappears if I change the controller settings and click on the Refresh button next to "DInput/0/Keyboard Mouse".
It seems to happen only once per boot as I cannot reproduce it after it's disappeared.
I will try to see if I can bisect it.
Updated by filoppi almost 4 years ago
Probably a duplicate of:
https://bugs.dolphin-emu.org/issues/11702
Updated by filoppi almost 4 years ago
You can try this build, I recently wrote a workaround for the issue, but I can't test it because the problem doesn't happen on my machine: https://github.com/dolphin-emu/dolphin/pull/9489/
Updated by Miksel12 almost 4 years ago
I have also had this on my laptop but never on my desktop.
Updated by ds22x almost 4 years ago
@filoppi Would you happen to have a pre-compiled build lying around I could test?
Because I've been trying to build one from your source, but I'm unable to compile it with VS2019.
Updated by filoppi almost 4 years ago
not sure why, it should build, anyway, here it is, it's even got more fixes so it should theoretically also fix @sepalani issue where the KeyboardMouse device disappears:
https://file.io/eV6S6k8nqYlw
Updated by ds22x almost 4 years ago
So far it seems to fix the problem I'm having!
Need to perform more test though, but I have found a bug involving the hotkeys not working when you have "render to main window" enabled, but other than that it's so far so good.
Updated by filoppi almost 4 years ago
Well that's nice, though it's a workaround, it just avoids recreating the keyboard/mouse device when you change the render window. I couldn't actually fix the problem with DInput. This fix isn't coming soon anyway, I still got polish to make.
Updated by ds22x almost 4 years ago
At least I have able to confirm it's a real problem and not me loosing my marbles, so I'll look forward to the day your fix gets implemented.
Updated by JosJuice almost 4 years ago
- Status changed from New to Fixed
- Fixed in set to 5.0-14382