SDL2::HapticCustom - A structure containing a template for a Custom effect
use SDL2 qw[:all]; # TODO: I need to whip up a quick example
A SDL2::HapticCustom is exclusively for the SDL_HAPTIC_CUSTOM effect.
SDL_HAPTIC_CUSTOM
A custom force feedback effect is much like a periodic effect, where the application can define its exact shape. You will have to allocate the data yourself. Data should consist of channels * samples Uint16 samples.
If channels is one, the effect is rotated using the defined direction. Otherwise it uses the samples in data for the different axes.
type
direction
length
delay
button
interval
channels
period
samples
data
channels*samples
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.