Skip to content

Commit 56f3aab

Browse files
Update TSDL_HapticEffect to reflect union structure correctly
1 parent cb621e3 commit 56f3aab

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

units/sdlhaptic.inc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -766,15 +766,15 @@ type
766766
type
767767
PSDL_HapticEffect = ^TSDL_HapticEffect;
768768
TSDL_HapticEffect = record
769-
{* Common for all force feedback effects *}
770-
type_: cuint16; {**< Effect type. *}
771-
case cuint16 of
772-
0: (constant: TSDL_HapticConstant;); {**< Constant effect. *}
773-
1: (periodic: TSDL_HapticPeriodic;); {**< Periodic effect. *}
774-
2: (condition: TSDL_HapticCondition;); {**< Condition effect. *}
775-
3: (ramp: TSDL_HapticRamp;); {**< Ramp effect. *}
776-
4: (leftright: TSDL_HapticLeftRight;); {**< Custom effect. *}
777-
5: (custom: TSDL_HapticCustom;); {**< Custom effect. *}
769+
case cint of
770+
{* Common for all force feedback effects *}
771+
0: (type_: cuint16); {**< Effect type. *}
772+
1: (constant: TSDL_HapticConstant;); {**< Constant effect. *}
773+
2: (periodic: TSDL_HapticPeriodic;); {**< Periodic effect. *}
774+
3: (condition: TSDL_HapticCondition;); {**< Condition effect. *}
775+
4: (ramp: TSDL_HapticRamp;); {**< Ramp effect. *}
776+
5: (leftright: TSDL_HapticLeftRight;); {**< Custom effect. *}
777+
6: (custom: TSDL_HapticCustom;); {**< Custom effect. *}
778778
end;
779779

780780
{* Function prototypes *}

0 commit comments

Comments
 (0)