-
Notifications
You must be signed in to change notification settings - Fork 121
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
Analog input range modification #505
Comments
When I was thinking about #491, I considered that option, but it doesn't quite fit the bill as a processor. Maybe we could create something called "Only" or a similar processor. But I feel like it should be implemented in #483 because returning |
Just my opinion, but this feels like a niche use-case that belongs in user land. For example if you would do locomotion, you'd have the motion vector come from the right and forward axes of the input, then use it in your animation logic to play different animations based on the value. What can we gain from having a separate input action? |
Yeah, I think this is best handled in user land. |
What problem does this solve?
This allows a mapping of a certain range of analog inputs to different actions, such as walking or running on the same input.
What solution would you like?
An example of the intended usage is akin to this:
where bounds could be set on some analog input such that different actions are tied to either the x, y, or magnitude component of an analog input.
In setting this up you could have a 3d game in which the walking or sneaking or other similar movements tied to the distance from center for a joystick, or in a 2d sense have a method of understanding a slight tilt for look up and full tilt being a jump.
There definitely is a lot of wiggle room on this concept, and it may not even be best practice to do these things in this way.
[Optional] How could this be implemented?
My (very minimal) thoughts would be to put this with the definition of the
axislike::SingleAxis
as it would affect both thesingle and double variants.
[Optional] What alternatives have you considered?
I am honestly not sure if this functionality exists already or if there is a clean way to do this, but from my reading of the docs I was unable to find something that seemed to do this and haven't been able to find any specific outside tooling that does this.
I would love to be proven incorrect though!
Related work
In #322 a similar concept was brought up but focused on the sensitivity of the input values rather than parsing the values from some input device.
The text was updated successfully, but these errors were encountered: