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

Handle input pressure in the input controller #234

Closed
grzi opened this issue Feb 22, 2022 · 2 comments
Closed

Handle input pressure in the input controller #234

grzi opened this issue Feb 22, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@grzi
Copy link
Owner

grzi commented Feb 22, 2022

Describe the feature

When retrieving if an input is pressed, it would be interesting to be able to also retrieve a gauge that represents how long it has been pressed.

Why do you need this feature ?

It's usefull to handle acceleration and conditional actions depending on the pressure type

@grzi grzi added the enhancement New feature or request label Feb 22, 2022
@grzi grzi added this to the 0.7.0-Starlight-1961 milestone Feb 22, 2022
@Yash-Punia
Copy link
Contributor

Do you think this feature is game specific, and can be implemented in the actual game itself when required using the KeyPressed and KeyReleased events and measuring the time passed between the 2 events

@grzi
Copy link
Owner Author

grzi commented Oct 8, 2022

I was initially thinking of exposing this feature through the input controller but yes it's maybe game specific

I think the way to go for this would be to create a new example to implement how to create this feature (just an empty window and log the current input pressure would do the job)

If in the future it's something that the engine could expose it would be easy to take the example and put it in the engine.

@grzi grzi removed this from the 0.7.0-Starlight-1961 milestone Mar 19, 2023
@grzi grzi closed this as not planned Won't fix, can't repro, duplicate, stale Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants