DualSenseState class

Immutable snapshot of the full physical state of a DualSense controller.

Every value emitted by DualSenseController.onInputChanged represents an actual change compared to the previous state (structural comparison via Equatable), so it's safe to use directly in a StreamBuilder without extra deduplication logic.

Constructors

DualSenseState({required String modelName, required int batteryPercentage, required bool isCharging, required bool isHeadphoneConnected, required int leftStickX, required int leftStickY, required int rightStickX, required int rightStickY, required int l2Trigger, required int r2Trigger, required bool isCrossPressed, required bool isCirclePressed, required bool isSquarePressed, required bool isTrianglePressed, required bool isL1Pressed, required bool isR1Pressed, required bool isL3Pressed, required bool isR3Pressed, required bool isPsPressed, required bool isTouchpadClicked, required bool isMutePressed, required bool isCreatePressed, required bool isOptionsPressed, required bool dPadArriba, required bool dPadAbajo, required bool dPadIzquierda, required bool dPadDerecha})
const

Properties

batteryPercentage int
final
dPadAbajo bool
final
dPadArriba bool
final
dPadDerecha bool
final
dPadIzquierda bool
final
hashCode int
The hash code for this object.
no setterinherited
isCharging bool
final
isCirclePressed bool
final
isCreatePressed bool
final
isCrossPressed bool
final
isHeadphoneConnected bool
final
isL1Pressed bool
final
isL3Pressed bool
final
isMutePressed bool
final
isOptionsPressed bool
final
isPsPressed bool
final
isR1Pressed bool
final
isR3Pressed bool
final
isSquarePressed bool
final
isTouchpadClicked bool
final
isTrianglePressed bool
final
l2Trigger int
final
leftStickX int
final
leftStickY int
final
modelName String
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
r2Trigger int
final
rightStickX int
final
rightStickY int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
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.

Operators

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