SDL2::HapticRamp - A structure containing a template for a Ramp effect
use SDL2 qw[:all]; # TODO: I need to whip up a quick example
A SDL2::HapticRamp is exclusively for the SDL_HAPTIC_RAMP effect.
SDL_HAPTIC_RAMP
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.
type
direction
length
delay
button
interval
start
end
attack_length
attack_level
fade_length
fade_level
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.
Sanko Robinson <sanko@cpan.org>
To install SDL2::FFI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SDL2::FFI
CPAN shell
perl -MCPAN -e shell install SDL2::FFI
For more information on module installation, please visit the detailed CPAN module installation guide.