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
DECLSPEC int SDLCALL SDL_HapticSetAutocenter(SDL_Haptic *haptic, int autocenter)
DECLSPEC void SDLCALL SDL_HapticDestroyEffect(SDL_Haptic *haptic, int effect)
DECLSPEC int SDLCALL SDL_HapticNewEffect(SDL_Haptic *haptic, SDL_HapticEffect *effect)
DECLSPEC int SDLCALL SDL_HapticRunEffect(SDL_Haptic *haptic, int effect, Uint32 iterations)
DECLSPEC int SDLCALL SDL_HapticOpened(int device_index)
DECLSPEC int SDLCALL SDL_HapticNumEffectsPlaying(SDL_Haptic *haptic)
DECLSPEC int SDLCALL SDL_HapticStopEffect(SDL_Haptic *haptic, int effect)
DECLSPEC int SDLCALL SDL_HapticSetGain(SDL_Haptic *haptic, int gain)
DECLSPEC SDL_Haptic *SDLCALL SDL_HapticOpenFromMouse(void)
DECLSPEC int SDLCALL SDL_HapticUnpause(SDL_Haptic *haptic)
DECLSPEC int SDLCALL SDL_HapticUpdateEffect(SDL_Haptic *haptic, int effect, SDL_HapticEffect *data)
DECLSPEC void SDLCALL SDL_HapticClose(SDL_Haptic *haptic)
DECLSPEC int SDLCALL SDL_NumHaptics(void)
struct _SDL_Haptic SDL_Haptic
The haptic structure used to identify an SDL haptic.
Definition: SDL_haptic.h:141
DECLSPEC unsigned int SDLCALL SDL_HapticQuery(SDL_Haptic *haptic)
DECLSPEC SDL_Haptic *SDLCALL SDL_HapticOpenFromJoystick(SDL_Joystick *joystick)
DECLSPEC int SDLCALL SDL_JoystickIsHaptic(SDL_Joystick *joystick)
DECLSPEC int SDLCALL SDL_MouseIsHaptic(void)
DECLSPEC int SDLCALL SDL_HapticRumblePlay(SDL_Haptic *haptic, float strength, Uint32 length)
DECLSPEC int SDLCALL SDL_HapticRumbleStop(SDL_Haptic *haptic)
DECLSPEC int SDLCALL SDL_HapticRumbleSupported(SDL_Haptic *haptic)
DECLSPEC SDL_Haptic *SDLCALL SDL_HapticOpen(int device_index)
DECLSPEC int SDLCALL SDL_HapticIndex(SDL_Haptic *haptic)
DECLSPEC int SDLCALL SDL_HapticStopAll(SDL_Haptic *haptic)
DECLSPEC const char *SDLCALL SDL_HapticName(int device_index)
DECLSPEC int SDLCALL SDL_HapticNumAxes(SDL_Haptic *haptic)
DECLSPEC int SDLCALL SDL_HapticGetEffectStatus(SDL_Haptic *haptic, int effect)
DECLSPEC int SDLCALL SDL_HapticEffectSupported(SDL_Haptic *haptic, SDL_HapticEffect *effect)
DECLSPEC int SDLCALL SDL_HapticPause(SDL_Haptic *haptic)
DECLSPEC int SDLCALL SDL_HapticRumbleInit(SDL_Haptic *haptic)
DECLSPEC int SDLCALL SDL_HapticNumEffects(SDL_Haptic *haptic)
A structure containing a template for a Condition effect.
Definition: SDL_haptic.h:612
Uint16 delay
Definition: SDL_haptic.h:620
Uint16 deadband[3]
Definition: SDL_haptic.h:631
Uint16 interval
Definition: SDL_haptic.h:624
Sint16 center[3]
Definition: SDL_haptic.h:632
Uint16 left_sat[3]
Definition: SDL_haptic.h:628
Uint16 type
Definition: SDL_haptic.h:614
Uint16 button
Definition: SDL_haptic.h:623
SDL_HapticDirection direction
Definition: SDL_haptic.h:616
Sint16 right_coeff[3]
Definition: SDL_haptic.h:629
Uint16 right_sat[3]
Definition: SDL_haptic.h:627
Sint16 left_coeff[3]
Definition: SDL_haptic.h:630
Uint32 length
Definition: SDL_haptic.h:619
A structure containing a template for a Constant effect.
Definition: SDL_haptic.h:478
Uint16 fade_level
Definition: SDL_haptic.h:498
Uint16 delay
Definition: SDL_haptic.h:485
Uint16 interval
Definition: SDL_haptic.h:489
Uint16 fade_length
Definition: SDL_haptic.h:497
Uint16 type
Definition: SDL_haptic.h:480
Uint16 button
Definition: SDL_haptic.h:488
SDL_HapticDirection direction
Definition: SDL_haptic.h:481
Uint16 attack_length
Definition: SDL_haptic.h:495
Uint16 attack_level
Definition: SDL_haptic.h:496
Sint16 level
Definition: SDL_haptic.h:492
Uint32 length
Definition: SDL_haptic.h:484
A structure containing a template for the SDL_HAPTIC_CUSTOM effect.
Definition: SDL_haptic.h:714
Uint16 fade_level
Definition: SDL_haptic.h:737
Uint16 delay
Definition: SDL_haptic.h:721
Uint16 * data
Definition: SDL_haptic.h:731
Uint16 interval
Definition: SDL_haptic.h:725
Uint8 channels
Definition: SDL_haptic.h:728
Uint16 fade_length
Definition: SDL_haptic.h:736
Uint16 type
Definition: SDL_haptic.h:716
Uint16 button
Definition: SDL_haptic.h:724
SDL_HapticDirection direction
Definition: SDL_haptic.h:717
Uint16 period
Definition: SDL_haptic.h:729
Uint16 attack_length
Definition: SDL_haptic.h:734
Uint16 attack_level
Definition: SDL_haptic.h:735
Uint32 length
Definition: SDL_haptic.h:720
Uint16 samples
Definition: SDL_haptic.h:730
Structure that represents a haptic direction.
Definition: SDL_haptic.h:460
Uint8 type
Definition: SDL_haptic.h:461
Sint32 dir[3]
Definition: SDL_haptic.h:462
A structure containing a template for a Left/Right effect.
Definition: SDL_haptic.h:686
Uint16 large_magnitude
Definition: SDL_haptic.h:694
Uint16 small_magnitude
Definition: SDL_haptic.h:695
Uint16 type
Definition: SDL_haptic.h:688
Uint32 length
Definition: SDL_haptic.h:691
A structure containing a template for a Periodic effect.
Definition: SDL_haptic.h:559
Uint16 fade_level
Definition: SDL_haptic.h:584
Uint16 delay
Definition: SDL_haptic.h:568
Uint16 interval
Definition: SDL_haptic.h:572
Uint16 fade_length
Definition: SDL_haptic.h:583
Sint16 offset
Definition: SDL_haptic.h:577
Uint16 type
Definition: SDL_haptic.h:561
Sint16 magnitude
Definition: SDL_haptic.h:576
Uint16 button
Definition: SDL_haptic.h:571
SDL_HapticDirection direction
Definition: SDL_haptic.h:564
Uint16 phase
Definition: SDL_haptic.h:578
Uint16 period
Definition: SDL_haptic.h:575
Uint16 attack_length
Definition: SDL_haptic.h:581
Uint16 attack_level
Definition: SDL_haptic.h:582
Uint32 length
Definition: SDL_haptic.h:567
A structure containing a template for a Ramp effect.
Definition: SDL_haptic.h:649
Uint16 fade_level
Definition: SDL_haptic.h:670
Uint16 delay
Definition: SDL_haptic.h:656
Uint16 interval
Definition: SDL_haptic.h:660
Uint16 fade_length
Definition: SDL_haptic.h:669
Uint16 type
Definition: SDL_haptic.h:651
Uint16 button
Definition: SDL_haptic.h:659
SDL_HapticDirection direction
Definition: SDL_haptic.h:652
Uint16 attack_length
Definition: SDL_haptic.h:667
Uint16 attack_level
Definition: SDL_haptic.h:668
Sint16 end
Definition: SDL_haptic.h:664
Sint16 start
Definition: SDL_haptic.h:663
Uint32 length
Definition: SDL_haptic.h:655
The generic template for any haptic effect.
Definition: SDL_haptic.h:810
SDL_HapticCustom custom
Definition: SDL_haptic.h:818
SDL_HapticRamp ramp
Definition: SDL_haptic.h:816
SDL_HapticPeriodic periodic
Definition: SDL_haptic.h:814
Uint16 type
Definition: SDL_haptic.h:812
SDL_HapticLeftRight leftright
Definition: SDL_haptic.h:817
SDL_HapticConstant constant
Definition: SDL_haptic.h:813
SDL_HapticCondition condition
Definition: SDL_haptic.h:815