USBqemu-wheel icon indicating copy to clipboard operation
USBqemu-wheel copied to clipboard

HID Keyboard emulation completely stops working after savestate is loaded

Open SlyCooperReloadCoded opened this issue 3 years ago • 0 comments

Steps to recreate:

  • Enable HID Keyboard emulation and set it to Raw Input.
  • Launch PCSX2 1.6.0.
  • Get to a point in a game that uses the keyboard.
  • Make a savestate.
  • Stop emulation.
  • Start emulation.
  • Load the savestate.

The game will still work as expected, but despite printing "usbkeybd1: attached (port=2)" to the console, the plugin will have no effect, the keyboard will do absoultely nothing until the emulator is fully shut down and restarted. PCSX2 as a whole will crash when pressing keyboard keys after loading the savestate. This used to work perfectly, and I have a special game-specific case where I need to load a savestate and immediately use USB keyboard emulation, but this issue is preventing me from doing that.

Windows 10 x64 Build 19043 Intel Core i9-10900K NVIDIA RTX 2080 Super 64 GB DDR4 Memory Just in case that stuff matters. PCSX2's emuLog: emuLog.txt

Additionally, while it's not directly related to this issue, Forward Slash (/) on the numpad is no longer recognized as a key by the plugin. Games that use it act as if no key is being pressed. I also need this for my game-specific situation.

Edit: Neither of these issues exist on prerelease 0.10.1.

SlyCooperReloadCoded avatar Sep 04 '22 01:09 SlyCooperReloadCoded