Pad.setActive

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 Pad.activateMode with the pad's current mode and a FALSE argument.

class Pad
bool
setActive
(
bool active
)

Parameters

active bool

whether or not the pad should be active.

Return Value

Type: bool

TRUE if the operation was successful.

MT safe.