API:Class/Controller

Abstract: This object is abstract. It cannot be created with Instance.new, and its members are inherited by other classes.
Filtered-inheritance mode: While this class technically inherits all Instance class members, some (if not all) have been hidden because they serve no purpose for this object.

Object Icon.pngController : Object Icon.pngInstance

The base class for controller objects, such as the HumanoidController object.

Functions

FunctionsmemberhiddenFunctions [toggle]

voidBindButton ( Button button, string caption )

Activates an overriding bind on the specified button.

|RMD member="API:Class/Controller/BindButton"|Activates an overriding bind on the specified button.|/RMD|
boolGetButton ( Button button )

Returns whether or not Button is being pressed.

|RMD member="API:Class/Controller/GetButton"|Returns whether or not Button is being pressed.|/RMD|
voidUnbindButton ( Button button )

Removes the bind on button.

|RMD member="API:Class/Controller/UnbindButton"|Removes the bind on button.|/RMD|
voidbindButton ( Button button, string caption ) [deprecated]

Deprecated in favor of BindButton.

|RMD member="API:Class/Controller/bindButton"|Deprecated in favor of BindButton.|/RMD|
boolgetButton ( Button button ) [deprecated]

Deprecated in favor of GetButton.

|RMD member="API:Class/Controller/getButton"|Deprecated in favor of GetButton.|/RMD|
BindButton ( Button button, string caption )
Activates an overriding bind on the specified button.
GetButton ( Button button )
Returns whether or not Button is being pressed.
UnbindButton ( Button button )
Removes the bind on button.
bindButton ( Button button, string caption ) [deprecated]
Deprecated in favor of BindButton.
getButton ( Button button ) [deprecated]
Deprecated in favor of GetButton.


Events

Events [toggle]

ButtonChanged ( Button button )

Fired when the pressed state of a bound button is changed. This event can be used in conjunction with GetButton to see whether a bound button is being pressed down or not.

|RMD member="API:Class/Controller/ButtonChanged"|Fired when the pressed state of a bound button is changed. This event can be used in conjunction with GetButton to see whether a bound button is being pressed down or not.|/RMD|
Fired when the pressed state of a bound button is changed. This event can be used in conjunction with GetButton to see whether a bound button is being pressed down or not.

Inherited Classes

UserInputService.pngHumanoidController
UserInputService.pngSkateboardController
UserInputService.pngVehicleController
|RMD member="API:Class/Controller"|The base class for controller objects, such as the HumanoidController object. |/RMD|