GamepadType enum

Standard gamepad types.

This type does not necessarily map to first-party controllers from Microsoft/Sony/Nintendo; in many cases, third-party controllers can report as these, either because they were designed for a specific console, or they simply most closely match that console's controllers (does it have A/B/X/Y buttons or X/O/Square/Triangle? Does it have a touchpad? etc

Inheritance
Available extensions

Values

unknown → const GamepadType

The gamepad is unknown.

standard → const GamepadType

A "standard" gamepad.

xbox360 → const GamepadType

An Xbox 360 controller.

xboxOne → const GamepadType

An Xbox One controller.

xboxPs3 → const GamepadType

A PS3 controller.

xboxPs4 → const GamepadType

A PS4 controller.

xboxPs5 → const GamepadType

A PS5 controller.

nintendoSwitchPro → const GamepadType

A Nintendo Switch Pro controller.

nintendoSwitchJoyconLeft → const GamepadType

The left joy-con of a Nintendo Switch joy-con pair.

nintendoSwitchJoyconRight → const GamepadType

The right joy-con of a Nintendo Switch joy-con pair.

nintendoSwitchJoyconPair → const GamepadType

A complete pair of Nintendo Switch joy-cons.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromValue(int value) GamepadType
Returns the appropriate GamepadType for the given C++ value.

Constants

values → const List<GamepadType>
A constant List of the values in this enum, in order of their declaration.