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
Having several types for each input method doesn't make much sense here and tends to clutter things.
For example, there is no MouseVirtualAxis type right now because it wasn't taken into count, even though I believe the mouse buttons implement Buttonlike.
These ~6 structs could be merged into 3 simpler types: VirtualAxisVirtualDPad, VirtualDPad3d
The implementation would probably use generics and Buttonlike
The text was updated successfully, but these errors were encountered:
Made from #631 (comment)
Which code could be improved?
src/user_input/keyboard.rs
src/user_input/mouse.rs
src/user_input/gamepad.rs
How should this be changed?
Having several types for each input method doesn't make much sense here and tends to clutter things.
For example, there is no
MouseVirtualAxis
type right now because it wasn't taken into count, even though I believe the mouse buttons implementButtonlike
.These ~6 structs could be merged into 3 simpler types:
VirtualAxis
VirtualDPad
,VirtualDPad3d
The implementation would probably use generics and
Buttonlike
The text was updated successfully, but these errors were encountered: