Class: SDL2::Haptic::Custom
- Defined in:
- lib/sdl2/haptic.rb
Overview
brief A structure containing a template for the ::SDL_HAPTIC_CUSTOM effect.
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.
\sa SDL_HAPTIC_CUSTOM
\sa SDL_HapticEffect
Method Summary
Methods inherited from Struct
#==, cast, #initialize, release
Methods included from StructHelper
#member_readers, #member_writers
Constructor Details
This class inherits a constructor from SDL2::Struct