Ryochan7 / DS4Windows

Like those other ds4tools, but sexier
https://ryochan7.github.io/ds4windows-site/
GNU General Public License v3.0
7.02k stars 810 forks source link

Keyboard key not working after mapping it to controller #957

Closed hamiltino closed 4 years ago

hamiltino commented 4 years ago

Mapped the k key to controller and installed HID Guardian(Helps put controller into exclusive mode). After the k key does not work on keyboard. Uninstalled HID Guardian but the problem still exists. Reinstalled keyboard drivers, removed the USB connection and reinserted USB but still same problem.

hamiltino commented 4 years ago

Changed language layout on keyboard and restarted. the k key worked on sign in but stopped working after 5 seconds.

mika-n commented 4 years ago

Do you mean that just the "K" key doesn't work, but other keyboard keys work just fine? Or the whole keyboard is now broken?

Don't see theoretical cases how just one keyboard key would stop working even with HIDGuardian tool, but in theory it is possible to end up having non-functioning keyboard if HIdGuardian uninstallation fails (link of HID classfilter driver linking corrupted). See "driver uninstallation / classfilter manual removal" link in the following web page: https://forums.vigem.org/topic/271/hidguardian-v1-driver-installation

If you map keyboard keys to analog axies (LS/RS sticks or gyro) then remember to set a big enough deadzone because those analog axies are never completely stable in a hardware level or don't always return to the same "center resting" poisition. This may lead to constant feeding of keyboard key events because DS4Win app see analog axis activity all the time. Setting a deadzone solves this issue.

Ryochan7 commented 4 years ago

Pretty sure that whatever problem you are having has nothing to do with DS4Windows. It is probably not related to HidGuardian either as that would be an all or nothing scenario. If the keyboard works at all then HidGuardian is not interfering.

Ryochan7 commented 4 years ago

Do you have DS4Windows set to launch at startup? mika-n has a point regarding if you mapped a virtual K press to the analog stick. You would need a dead zone set on LS and/or RS if mapping KB+M controls to the analog sticks. The DS4 analog sticks do not return to absolute center a lot of the time so you need to have some form of dead zone set so actions are not unintentionally executed.

hamiltino commented 4 years ago

Thanks for the help! Yes you are right. I assigned a controller input to the k key and then assigned the k key with push to talk on my NVIDIA in game overlay. I just reset the Nvidia shortcut button and it works now. Offtopic

Anyway thanks so much!