Controller:isTouched

Returns whether or not a given button on the Controller is currently touched. This may not mean the button is actually pressed since some controllers are touch-sensitive.

touched = Controller:isTouched(button)

Arguments

NameTypeDescription
buttonControllerButtonThe button to query.

Returns

NameTypeDescription
touchedbooleanWhether the button is touched.

See also