|
cpp-sdl2
C++ header-only SDL2 wrapper
|
#include <haptic.hpp>
Public Member Functions | |
| operator SDL_HapticEffect * () const | |
| Custom effect. More... | |
| Effect () | |
| Construct the effect. Fill it with zeroes. More... | |
Public Attributes | |
| Uint16 | type |
| SDL_HapticConstant | constant |
| Effect type. More... | |
| SDL_HapticPeriodic | periodic |
| Constant effect. More... | |
| SDL_HapticCondition | condition |
| Periodic effect. More... | |
| SDL_HapticRamp | ramp |
| Condition effect. More... | |
| SDL_HapticLeftRight | leftright |
| Ramp effect. More... | |
| SDL_HapticCustom | custom |
| Left/Right effect. More... | |
Effect defintion.
Definition at line 81 of file haptic.hpp.
|
inline |
Construct the effect. Fill it with zeroes.
Definition at line 103 of file haptic.hpp.
References type.
|
inline |
Custom effect.
this permit to treat an sdl::haptic::effect instance as if it was an SDL_HapticEffect pointer
Definition at line 96 of file haptic.hpp.
| SDL_HapticCondition sdl::Haptic::Effect::condition |
Periodic effect.
Definition at line 90 of file haptic.hpp.
| SDL_HapticConstant sdl::Haptic::Effect::constant |
Effect type.
Definition at line 88 of file haptic.hpp.
| SDL_HapticCustom sdl::Haptic::Effect::custom |
Left/Right effect.
Definition at line 93 of file haptic.hpp.
| SDL_HapticLeftRight sdl::Haptic::Effect::leftright |
Ramp effect.
Definition at line 92 of file haptic.hpp.
| SDL_HapticPeriodic sdl::Haptic::Effect::periodic |
Constant effect.
Definition at line 89 of file haptic.hpp.
| SDL_HapticRamp sdl::Haptic::Effect::ramp |
Condition effect.
Definition at line 91 of file haptic.hpp.
| Uint16 sdl::Haptic::Effect::type |
Definition at line 87 of file haptic.hpp.
Referenced by Effect(), sdl::Haptic::is_effect_compatible(), and sdl::Haptic::new_effect().