HapticConstant constructor
HapticConstant({})
Create a constant effect.
Implementation
HapticConstant({
required final Sdl sdl,
required this.direction,
required this.length,
required this.delay,
required this.button,
required this.interval,
required this.level,
required this.attackLength,
required this.attackLevel,
required this.fadeLength,
required this.fadeLevel,
}) : super(sdl) {
sdl.loadHapticDirection(direction);
handle.ref.type = SDL_HAPTIC_CONSTANT;
handle.ref.constant
..direction = sdl.hapticDirectionPointer.ref
..length = length
..delay = delay
..button = button
..interval = interval
..level = level
..attack_length = attackLength
..fade_length = fadeLength
..fade_level = fadeLevel;
}