You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on #370, it got me thinking about joysticks being used as a dpad or an input that requires the full 360° to be split up into snap-able angles.
What solution would you like?
Probably something like:
// `with_snapping()` could take a radians or degree depending on which more ergonamic.// Using degree does require converting to radians though.DualAxis::left_stick().with_snapping(PI / 2.0);
What problem does this solve?
While working on #370, it got me thinking about joysticks being used as a dpad or an input that requires the full 360° to be split up into snap-able angles.
What solution would you like?
Probably something like:
How could this be implemented?
In
axis_like.rs
In
input_streams.rs
inextract_dual_axis_data()
, the snapping can be applied to the creation of theDualAxisData
.The text was updated successfully, but these errors were encountered: