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

Support for mouse capture / pointer lock #344

Open
GameParrot opened this issue Oct 23, 2023 · 3 comments
Open

Support for mouse capture / pointer lock #344

GameParrot opened this issue Oct 23, 2023 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@GameParrot
Copy link

Would it be possible to add pointer lock support so games that lock the mouse cursor work?

@m1k1o m1k1o added enhancement New feature or request good first issue Good for newcomers labels Oct 27, 2023
@ehfd
Copy link

ehfd commented Feb 22, 2024

These are some reference codes that utilize the Pointer Lock API to achieve this.

https://github.com/selkies-project/selkies-gstreamer/tree/main/addons/gst-web/src

https://github.com/kasmtech/noVNC

And this is a way to support gamepads inside a container without needing to use uinput.

https://github.com/selkies-project/selkies-gstreamer/tree/main/addons/js-interposer

With X11, XTEST may be used to send relative mouse events, which is combined with the Pointer Lock API.
https://github.com/selkies-project/selkies-gstreamer/blob/b0827470bc1328e1237f93e60ebb5556f0c61c0b/src/selkies_gstreamer/webrtc_input.py#L282

@ehfd
Copy link

ehfd commented Feb 22, 2024

Relevant for the web interface redesign for #358.

@ehfd ehfd mentioned this issue Mar 19, 2024
26 tasks
@ehfd
Copy link

ehfd commented May 1, 2024

https://github.com/Xpra-org/xpra/blob/a5a13a993139d9d48a60734e7bab3ec9d53c919a/xpra/server/mixins/input.py#L257

This should be a way to fix continued key presses during congestion and packet losses, instead of using time in seconds (games may require continued key presses).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants