bitgapp / Cursr

KVM - Share Mouse & Keyboard between multiple computers. Custom borders and more!
https://cursr.app
Other
175 stars 4 forks source link

Keyboard doesn't work with Baldur's Gate 3 #75

Open jpnarkinsky opened 2 months ago

jpnarkinsky commented 2 months ago

Describe the Bug/Issue

When running Baldur's Gate 3 (windows 11, full screen, directx) the keyboard doesn't work in the game.

ragauskl commented 2 months ago

This is a second report with keyboard not working in game, I may take a look into this sometime soon, but can't promise a quick fix and my schedule is filled with other priority tasks for this month. In any case I'll provide an update when I've tested this.

ragauskl commented 2 months ago

While I find time to test this - I assume Baldur's Gate is running as an admin? It could be permissions thing as Cursr is not running as admin, so if Baldur's Gate is running as admin you could try to run Cursr as admin as well, but I'm looking for a better solution/partial need for admin so it's not on the whole process. However if Baldur's Gate is not running as admin it may be some other issue.

ragauskl commented 2 months ago

Just realized it also can be due to games anti-cheat systems that they don't allow simulated key events to control the game. I don't know much about how they work, but could play a part in this issue. As with games I tested keyboard works in chat but not in the gameplay itself. So Cursr is working as usual, just the game is not registering or on purpose ignoring certain key presses.

It's also worth keeping in mind (I'll be adding a warning later somewhere in-app) that using software KVM for gaming can earn you a ban in the game as keyboard and mouse events are simulated on client device. This is theoretical, I haven't heard of such case but still a possibility and something to keep in mind. If you're using KVM while gaming as well - a physical KVM may be a safer bet.

ragauskl commented 2 months ago

@jpnarkinsky okay ignore the anti-cheat thing (except do still keep in mind playing over KVM, especially in case it's multiplayer, could in theory earn you a ban if they count simulated keys/mouse as cheating)

Set the 'Keyboard Layout' in 'Virtual Switch' settings to 'Current', that will emit scancodes inseatd of virtual keys like source does in order to allow using keyboard layout of host device. Games listen to scancodes for gameplay control. Let me know if that solves it and I'll add this in-app and in FAQ for others