107 #ifndef SDL_haptic_h_ 108 #define SDL_haptic_h_ 163 #define SDL_HAPTIC_CONSTANT (1u<<0) 172 #define SDL_HAPTIC_SINE (1u<<1) 183 #define SDL_HAPTIC_LEFTRIGHT (1u<<2) 195 #define SDL_HAPTIC_TRIANGLE (1u<<3) 204 #define SDL_HAPTIC_SAWTOOTHUP (1u<<4) 213 #define SDL_HAPTIC_SAWTOOTHDOWN (1u<<5) 222 #define SDL_HAPTIC_RAMP (1u<<6) 232 #define SDL_HAPTIC_SPRING (1u<<7) 242 #define SDL_HAPTIC_DAMPER (1u<<8) 252 #define SDL_HAPTIC_INERTIA (1u<<9) 262 #define SDL_HAPTIC_FRICTION (1u<<10) 269 #define SDL_HAPTIC_CUSTOM (1u<<11) 282 #define SDL_HAPTIC_GAIN (1u<<12) 291 #define SDL_HAPTIC_AUTOCENTER (1u<<13) 300 #define SDL_HAPTIC_STATUS (1u<<14) 310 #define SDL_HAPTIC_PAUSE (1u<<15) 323 #define SDL_HAPTIC_POLAR 0 330 #define SDL_HAPTIC_CARTESIAN 1 337 #define SDL_HAPTIC_SPHERICAL 2 345 #define SDL_HAPTIC_STEERING_AXIS 3 360 #define SDL_HAPTIC_INFINITY 4294967295U 849 extern DECLSPEC
const char *SDLCALL
SDL_HapticName(
int device_index);
Structure that represents a haptic direction.
int SDL_HapticGetEffectStatus(SDL_Haptic *haptic, int effect)
int SDL_HapticUpdateEffect(SDL_Haptic *haptic, int effect, SDL_HapticEffect *data)
void SDL_HapticClose(SDL_Haptic *haptic)
int SDL_HapticPause(SDL_Haptic *haptic)
A structure containing a template for a Periodic effect.
SDL_HapticDirection direction
int SDL_HapticRumbleInit(SDL_Haptic *haptic)
struct _SDL_Haptic SDL_Haptic
The haptic structure used to identify an SDL haptic.
SDL_Haptic * SDL_HapticOpen(int device_index)
A structure containing a template for a Condition effect.
A structure containing a template for a Constant effect.
int SDL_HapticSetGain(SDL_Haptic *haptic, int gain)
int SDL_HapticNewEffect(SDL_Haptic *haptic, SDL_HapticEffect *effect)
SDL_Haptic * SDL_HapticOpenFromMouse(void)
void SDL_HapticDestroyEffect(SDL_Haptic *haptic, int effect)
struct _SDL_Joystick SDL_Joystick
SDL_HapticCondition condition
A structure containing a template for a Left/Right effect.
int SDL_HapticRumbleStop(SDL_Haptic *haptic)
The generic template for any haptic effect.
int SDL_HapticNumEffectsPlaying(SDL_Haptic *haptic)
SDL_HapticConstant constant
int SDL_HapticEffectSupported(SDL_Haptic *haptic, SDL_HapticEffect *effect)
SDL_HapticDirection direction
int SDL_HapticNumEffects(SDL_Haptic *haptic)
int SDL_HapticIndex(SDL_Haptic *haptic)
const char * SDL_HapticName(int device_index)
A structure containing a template for a Ramp effect.
int SDL_HapticRunEffect(SDL_Haptic *haptic, int effect, Uint32 iterations)
int SDL_JoystickIsHaptic(SDL_Joystick *joystick)
int SDL_HapticRumbleSupported(SDL_Haptic *haptic)
int SDL_HapticRumblePlay(SDL_Haptic *haptic, float strength, Uint32 length)
SDL_HapticDirection direction
SDL_HapticLeftRight leftright
int SDL_HapticSetAutocenter(SDL_Haptic *haptic, int autocenter)
int SDL_HapticNumAxes(SDL_Haptic *haptic)
int SDL_HapticStopEffect(SDL_Haptic *haptic, int effect)
int SDL_MouseIsHaptic(void)
A structure containing a template for the SDL_HAPTIC_CUSTOM effect.
unsigned int SDL_HapticQuery(SDL_Haptic *haptic)
SDL_Haptic * SDL_HapticOpenFromJoystick(SDL_Joystick *joystick)
SDL_HapticPeriodic periodic
int SDL_HapticOpened(int device_index)
SDL_HapticDirection direction
SDL_HapticDirection direction
int SDL_HapticStopAll(SDL_Haptic *haptic)
int SDL_HapticUnpause(SDL_Haptic *haptic)