Skip to content

Commit 599d1e1

Browse files
Add TSDL_HapticLeftRight
1 parent 39c2e26 commit 599d1e1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

units/sdlhaptic.inc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,31 @@ type
630630
fade_level: cuint16; {**< Level at the end of the fade. *}
631631
end;
632632

633+
{**
634+
* \brief A structure containing a template for a Left/Right effect.
635+
*
636+
* This struct is exclusively for the ::SDL_HAPTIC_LEFTRIGHT effect.
637+
*
638+
* The Left/Right effect is used to explicitly control the large and small
639+
* motors, commonly found in modern game controllers. The small (right) motor
640+
* is high frequency, and the large (left) motor is low frequency.
641+
*
642+
* \sa SDL_HAPTIC_LEFTRIGHT
643+
* \sa SDL_HapticEffect
644+
*}
645+
type
646+
TSDL_HapticLeftRight = record
647+
{* Header *}
648+
type_: cuint16; {**< ::SDL_HAPTIC_LEFTRIGHT *}
649+
650+
{* Replay *}
651+
length: cuint32; {**< Duration of the effect in milliseconds. *}
652+
653+
{* Rumble *}
654+
large_magnitude: cuint16; {**< Control of the large controller motor. *}
655+
small_magnitude: cuint16; {**< Control of the small controller motor. *}
656+
end;
657+
633658
{**
634659
* A structure containing a template for the ::SDL_HAPTIC_CUSTOM effect.
635660
*

0 commit comments

Comments
 (0)