Activates or deactivates the given pad.
Normally called from within core state change functions.
If active
, makes sure the pad is active. If it is already active, either in push or pull mode, just return. Otherwise
dispatches to the pad's activate function to perform the actual activation.
If not active
, calls activate_mode with the pad's current mode and a
false
argument.
this |
the Pad to activate or deactivate. |
active |
whether or not the pad should be active. |