FRC9015 / Crescendo

Other
4 stars 0 forks source link

SCREW INPUTMANAGER UPDATES. REFACTOR SO IT IS ADAPTABLE. #40

Closed GoofyCoderGuy closed 8 months ago

GoofyCoderGuy commented 8 months ago

Thomas gave some suggestions on how to refactor the InputManager to have it output each type of button so that you can combine them as well as create custom buttons with Booleans. This is better than my approach where I would create a new function for each new feature which isn't ideal.

This will probably look completely different by the time I am done with this.

waffleattack commented 8 months ago

To give a better idea of what I meant, you could simply refactor input manager to have a function that takes in an enum and returns the button associated with it. Then the end user can handle any composition on their end

GoofyCoderGuy commented 8 months ago

What he said