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

Allow locking/unlocking the mouse through the input plugin #1401

Open
Tracked by #843
RiscadoA opened this issue Dec 5, 2024 · 0 comments
Open
Tracked by #843

Allow locking/unlocking the mouse through the input plugin #1401

RiscadoA opened this issue Dec 5, 2024 · 0 comments
Labels
A-Engine B-Input P-Urgent This issue is a big priority, and it would be good to close it ASAP
Milestone

Comments

@RiscadoA
Copy link
Member

RiscadoA commented Dec 5, 2024

Problem

Currently, to implement, for example, a FPS camera, to 'hide' the mouse and lock it to the center of the window, you need to access the Window class itself.
The logic is also a bit weird to mess around with, and it seems like something the input plugin should handle by itself, specially with #1399.

Solution

Maybe we should do something like input.lockMouse() and input.unlockMouse(), and make it so that the mouse axis only report movement when the mouse is locked.

@RiscadoA RiscadoA added this to the 0.6 milestone Dec 5, 2024
@RiscadoA RiscadoA added the P-Urgent This issue is a big priority, and it would be good to close it ASAP label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Engine B-Input P-Urgent This issue is a big priority, and it would be good to close it ASAP
Projects
None yet
Development

No branches or pull requests

1 participant