Takes the type the binding was made with, because a button code and an
axis code are both small integers from different sets and they collide:
GAMEPAD.AXES.LX and GAMEPAD.BUTTONS.FACE_1 are both 0. Without it an
axis could not be unbound at all, and asking for one by its code removed
whatever button happened to share the number.
unbind the defined keycode
Takes the
typethe binding was made with, because a button code and an axis code are both small integers from different sets and they collide:GAMEPAD.AXES.LXandGAMEPAD.BUTTONS.FACE_1are both 0. Without it an axis could not be unbound at all, and asking for one by its code removed whatever button happened to share the number.