debauchee / barrier

Open-source KVM software
Other
27.46k stars 1.51k forks source link

Impossible to play games that hold mouse input #2068

Open izcoser opened 4 months ago

izcoser commented 4 months ago

What happened?

I installed Barrier in my Linux laptop (client) and in my Windows desktop (server). My Linux laptop has GTA III installed on it. That game fixes the mouse pointer at the center of the screen and when you move the mouse, the game moves the camera angle and pushes the invisible mouse pointer back to the center.

However, camera control completely bugs out and becomes uncontrollable from the server's mouse, making the game unplayable. It still works normally if I use my laptop's mouse. I think this might be some kind of conflict between how games work and Barrier.

Anyway, not expecting this to be fixed because I know it's a rare use case, but just thought I would report this. Barrier works perfectly otherwise. Thanks.

Version

v2.4.0

Git commit hash (if applicable)

No response

If applicable, where did you install Barrier from?

Github installer and Arch extras repo.

What OSes are you seeing the problem on? (Check all that apply)

Linux, Windows

What OS versions are you using?

Windows 10 and Arch.

Relevant log output

No response

Any other information

No response

dcheek2 commented 4 months ago

I have the same problem, windows 10 server and ubuntu client.

tested with GZDoom... mouse works in menus but as soon as gameplay starts, mouse movement breaks and becomes unplayable

FF-Ibb-PD commented 4 months ago

Workaround that works for me:

On the Server go to "Configure Server" => "Hotkeys". Create a hotkey for "Bind Cursor to screen"

When you start your game toggle that hotkey. Works fine for me with every game till now.

(I'm using Barrier in german, so I translated those. Might be called a little bit different for you)

There might be problems with it atm, see #2039 Re-loading Barrier and open Barrier to the screen helped me with that, if the hotkey is not accepted.

tueksta commented 1 month ago

I'm having a similar issue with games that only recall mouse position occasionally. When I run Genshin on my Windows Server and move the focus to the Mac Client, and a Genshin dialogue scene ends, Genshin recalls the mouse to the Windows Server, but the keyboard stays focussed on the Mac Client. My quickfix is to use keyboard navigation (mouse is stuck inside Windows Server Genshin frame and can't move to Mac Client) to reload barrier on Mac Client which will release keyboard binding back to Windows Server.