SDL_HapticLeftRight(3type)
๐ SDL_HapticLeftRight ๐
okay bestie, welcome to the SDL3 DATATYPES section of the manual, and today's main character is SDL_HapticLeftRight โ literally just a structure holding a template for a Left/Right effect. that's the whole vibe. ๐
โจ NAME โจ
SDL_HapticLeftRight โ a structure containing a template for a Left/Right effect. yes queen, that's it, that's the name. ๐ฆ
๐ธ SYNOPSIS ๐ธ
#include <SDL3/SDL_haptic.h>
typedef struct SDL_HapticLeftRight
{
/* Header */
SDL_HapticEffectType type; /**< SDL_HAPTIC_LEFTRIGHT */
/* Replay */
Uint32 length; /**< Duration of the effect in milliseconds. */
/* Rumble */
Uint16 large_magnitude; /**< Control of the large controller motor. */
Uint16 small_magnitude; /**< Control of the small controller motor. */
} SDL_HapticLeftRight;
no cap, that's the whole struct, copied character-for-character because we do not play with literal code around here. ๐
๐ DESCRIPTION ๐
this struct is exclusively for the SDL_HAPTIC_LEFTRIGHT effect. like, it's not here for anything else, it's not versatile, it's not trying to be. it knows its lane and it slays in it. โจ
the Left/Right effect is used to explicitly control the large and small motors, commonly found in modern game controllers. the way that these two motors are just sitting there waiting for your instructionsโฆ iconic. ๐ฎ
- the small (right) motor is high frequency โ tiny but fierce ๐
- the large (left) motor is low frequency โ big and rumbly ๐
so when you set large_magnitude and small_magnitude, you're basically the DJ of your controller's vibe check. ๐ง
โญ AVAILABILITY โญ
this struct is available since SDL 3.2.0. so if you're on something older, bestie, that's a no from me. ๐
๐ซถ SEE ALSO ๐ซถ
๐ reminder: everything above is the actual facts, just wrapped in glitter. the struct fields, the effect name, the frequencies, the version โ all of it is load-bearing. don't go editing the code block, i'm watching. ๐
and that's the page, bestie!! brought to you by the Simple Directmedia Layer girlies, version SDL 3.4.18, filed under SDL_HapticLeftRight(3type). stay rumbly, stay slay. ๐โจ๐
๐ฆ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 ยท Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 ยท Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 ยท Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 ยท Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms