NAME
SDL2::HapticRamp - A structure containing a template for a Ramp effect
SYNOPSIS
use SDL2 qw[:all];
# TODO: I need to whip up a quick example
DESCRIPTION
A SDL2::HapticRamp is exclusively for the SDL_HAPTIC_RAMP effect.
The ramp effect starts at start strength and ends at end strength. It augments in linear fashion. If you use attack and fade with a ramp the effects get added to the ramp effect making the effect become quadratic instead of linear.
Fields
type-SDL_HAPTIC_RAMPdirection- Direction of the effect - Not used ATMlength- Duration of the effectdelay- Delay before starting the effectstart- Beginning strength levelend- Ending strength levelattack_length- Duration of the attackattack_level- Level at the start of the attackfade_length- Duration of the fadefade_level- Level at the end of the fade
LICENSE
Copyright (C) Sanko Robinson.
This library is free software; you can redistribute it and/or modify it under the terms found in the Artistic License 2. Other copyrights, terms, and conditions may apply to data transmitted through this module.
AUTHOR
Sanko Robinson <sanko@cpan.org>