does anybody know how I would go about making a universal input class that is static?
I want it to auto detect whether the input is from the keyboard or from the joystick and what joystick
I wanted the syntax to work kinda like this..
Input::SetButton(ButtonType t) // << button type is the action it is getting mapped to (a, b up, down, left, right, start, select) returns void.
Input::GetButton(ButtonType t, ButtonState s) // << same here but takes a button state which is (down, held and up) returns bool.
ButtonType and ButtonState would be defined in the class.
does anybody know if this is possible?