ControllerType()

Last Modified: 10/20/2026

Returns whether a controller port has a 3 or 6 button controller attached.

Arguments

NameTypeRequiredDescription
ControllerPort Integer No Valid values are 0 and 1. If the argument is omitted, then it defaults to 0 (controller port 1).

Example

Syntax: ControllerType([<ControllerPort>])
    a = ControllerType()
    Print a

Remarks

This function currently doesn't support other peripheral detections at this time.