Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gaming cursor mode (pointer lock) and a small bugfix #335

Merged
merged 2 commits into from
Dec 2, 2024

Conversation

CorbinWunderlich
Copy link
Contributor

Pointer lock makes gaming over Xpra finally usable and actually works pretty well. When cursor lock is turned on, it automatically locks you to the focused window (which counts the desktop in desktop mode), and when you exit with with the esc key, it pauses, and waits for you to click on a new window to lock on. The paused mode (and cursor lock) is disabled by default and can be disabled through the float menu, with some colors to indicate.

The small bugfix is just using my new css classes to color the keyboard in as well, as the previous approach to coloring it wasn't working as jQuery cannot change css :before attributes.

html5/js/Window.js Outdated Show resolved Hide resolved
html5/js/Window.js Outdated Show resolved Hide resolved
html5/js/Client.js Show resolved Hide resolved
This makes first-person gaming over Xpra finally usable.
@totaam totaam merged commit 6272dea into Xpra-org:master Dec 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants