THIS PAGE IS A WORK IN PROGRESS ... Please make edits to this page to improve it!
A structure containing a template for a Left/Right effect.
Defined in [SDL_haptic.h](https://github.com/libsdl-org/SDL/blob/SDL2/include/SDL_haptic.h), but apps should _only_ `#include "SDL.h"`!
typedef struct SDL_HapticLeftRight
{/* Header */
/**< ::SDL_HAPTIC_LEFTRIGHT */
Uint16 type;
/* Replay */
/**< Duration of the effect in milliseconds. */
Uint32 length;
/* Rumble */
/**< Control of the large controller motor. */
Uint16 large_magnitude; /**< Control of the small controller motor. */
Uint16 small_magnitude; } SDL_HapticLeftRight;
This struct is exclusively for the ::SDL_HAPTIC_LEFTRIGHT effect.
The Left/Right effect is used to explicitly control the large and small motors, commonly found in modern game controllers. The small (right) motor is high frequency, and the large (left) motor is low frequency.
<bgcolor="#EDEDED">Header |
||
Uint16 |
type |
SDL_HAPTIC_LEFTRIGHT |
<bgcolor="#EDEDED">Replay |
||
Uint32 |
length |
duration of the effect |
<bgcolor="#EDEDED">Rumble |
||
Uint16 |
large_magnitude |
control of the large controller motor |
Uint16 |
small_magnitude |
control of the small controller motor |
CategoryAPI, CategoryAPIStruct, CategoryStruct, CategoryForceFeedback, CategoryDraft