HapticCondition class

A conditional haptic effect.

SDL Docs

Inheritance

Constructors

HapticCondition({required Sdl sdl, required HapticConditionType type, required int length, required int delay, required int button, required int interval, required ConditionEffect rightSat, required ConditionEffect leftSat, required ConditionEffect rightCoeff, required ConditionEffect leftCoeff, required ConditionEffect deadband, required ConditionEffect center})
Create an instance.

Properties

button int
Button that triggers the effect.
final
center ConditionEffect
Position of the dead zone.
final
deadband ConditionEffect
Size of the dead zone; max 0xFFFF: whole axis-range when 0-centered.
final
delay int
Delay before starting the effect.
final
handle Pointer<SDL_HapticEffect>
The pointer to use.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
interval int
How soon it can be triggered again after button.
final
leftCoeff ConditionEffect
How fast to increase the force towards the negative side.
final
leftSat ConditionEffect
Level when joystick is to the negative side; max 0xFFFF.
final
length int
Duration of the effect.
final
rightCoeff ConditionEffect
How fast to increase the force towards the positive side.
final
rightSat ConditionEffect
Level when joystick is to the positive side; max 0xFFFF.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdl Sdl
The SDL bindings to use.
finalinherited
type HapticConditionType
The type of this effect.
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