GamepadPowerState enum
The current power state of a gamepad.
This does not include the current power level, just how the gamepad is getting power. Note that wireless USB receivers or dongles may report an inaccurate state -- eg, a receiver could emit noBattery while the wireless gamepad itself is onBattery.
Values
- error → const GamepadPowerState
-
Could not determine the gamepad's state.
const GamepadPowerState(-1)
- unknown → const GamepadPowerState
-
The state is unknown.
const GamepadPowerState(0)
- onBattery → const GamepadPowerState
-
The gamepad is using its battery.
const GamepadPowerState(1)
- noBattery → const GamepadPowerState
-
The gamepad is connected via a wire and doesn't have a battery.
const GamepadPowerState(2)
- charging → const GamepadPowerState
-
The gamepad is connected via a wire and is charging its battery.
const GamepadPowerState(3)
- charged → const GamepadPowerState
-
The gamepad is connected via a wire and its battery is fully charged.
const GamepadPowerState(4)
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
- value → int
-
The C++ value of this state.
final
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) → GamepadPowerState - Parses a state by its C++ value.
Constants
-
values
→ const List<
GamepadPowerState> - A constant List of the values in this enum, in order of their declaration.