mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[GH-ISSUE #1005] Mouse rotation blocked in fullscreen fps game #804
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#804
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AlbertBaubleDeem on GitHub (Jan 6, 2021).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1005
Describe the bug
When in fullscreen fps game on a client screen, the mouse cannot turn the player view rightwards and leftwards for more than approx 400°. The mouse gets stopped by perceived screen edge. Observed in Minecraft.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
4. I can make several turns leftwards or rightwards with no perceived barrier.
Desktop (please complete the following information):
Additional context
Also happens on the client in a window mode.
@sethdmoore commented on GitHub (Jan 7, 2021):
Have you tried
relativeMouseMoves? That usually overcomes any issues with games reading absolute mouse position.Keep in mind that this option requires the mouse to be locked to the screen (default key: ScrlLock)
See #663
@AlbertBaubleDeem commented on GitHub (Jan 7, 2021):
I did try relative mouse moves. It did not make any difference.
Also starting today hotkeys stopped working on Mac client, so I cannot use Scroll lock. I tried mapping the screen lock to a different key, but that also doesn't work at the moment.
Log from using Scroll Lock on the Client:
[2021-01-07T21:36:55] DEBUG1: recv key down id=0x0000ef14, mask=0x2000, button=0x004e
[2021-01-07T21:36:55] DEBUG1: ignored key ef14 2000
[2021-01-07T21:36:56] DEBUG1: recv key up id=0x0000ef14, mask=0x2000, button=0x004e
@AlbertBaubleDeem commented on GitHub (Jan 17, 2021):
After some testing, I found out that Scroll lock button activating screen lock on the client works or doesn't based on which keyboard language is set on the server.
When keyboard language is Czech on the server the Scrlock doesn't work on the Client. Xev log gives:
"FocusOut event, serial 37, synthetic NO, window 0x2600001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 37, synthetic NO, window 0x2600001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"
When keyboard language is English on the server the Scrlock does work on the Client. Xev log gives:
"FocusOut event, serial 37, synthetic NO, window 0x2600001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 37, synthetic NO, window 0x2600001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"
In both cases there the expected outcome of xev should be KeyPress, KeyRelease kind of log and it isn't.
I run Keycodes on OSX client and there is no record on scroll lock pressed when either language is set on the keyboard.
@AlbertBaubleDeem commented on GitHub (Jan 17, 2021):
relativeMouseMoves did indeed start working after a system reboot - client and server restart wasn't enough.
However, the anomaly with scroll lock key persists. I might raise it as a new issue, not to mix the two.
@FireCulex commented on GitHub (Jan 31, 2021):
I can confirm this issue in windows as well. You can't turn your character around in an FPS, relative mouse moves does nothing. I also don't have scroll lock button on my keyboard so I remapped it. However the lock screen gets stuck once it's on another client. The only way to bring the mouse back is to turn off the client. I tried using hotkeys to specifically tell which screen to put the cursor on, but that doesn't work either because if I move the mouse too far to the left, the server starts pressing buttons. Its a bit of a mess. Win10
@ChiAkuma commented on GitHub (Aug 13, 2022):
Is there any news on this?
I got that issue, too and its annoying
@bline commented on GitHub (Sep 5, 2022):
Not being able to rotate fully in-game happens to me regardless of relativeMouseMoves but only in MacOS, when I boot to windows relativeMouseMoves solves it.