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

A way to access the raw input device states via IInputManager #15745

Open
Rekkonnect opened this issue May 16, 2024 · 4 comments
Open

A way to access the raw input device states via IInputManager #15745

Rekkonnect opened this issue May 16, 2024 · 4 comments
Labels
api API addition enhancement

Comments

@Rekkonnect
Copy link
Contributor

Is your feature request related to a problem? Please describe.

For querying the current state of any device, we only rely on their respective events. For example, when I want to evaluate the current state of the pointer after a button press, I cannot query its current position and I have to wait for the user to move the pointer to evaluate its current position.

Describe the solution you'd like

Some public API that gives access to the input manager from the top level preferably.

Describe alternatives you've considered

No response

Additional context

No response

@maxkatz6
Copy link
Member

It's not planned.
The best what can be done on most platforms - returning state from the latest event per each pointer (or keyboard). But something like that can be already achieved with current APIs.

@maxkatz6 maxkatz6 added the api API addition label May 17, 2024
@Rekkonnect
Copy link
Contributor Author

It can be achieved by the current APIs by having a global state tracker I presume. But doesn't IInputManager already do that? Why would the user resort to a custom solution?

@kekekeks
Copy link
Member

InputManager doesn't track global key states, because the app isn't guaranteed to receive key press/release events that happen when app windows aren't active.

@Rekkonnect
Copy link
Contributor Author

Could this be added as a plan for this purpose? Providing those raw values, even inaccurately during window inactivity, would be very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api API addition enhancement
Projects
None yet
Development

No branches or pull requests

3 participants