Skip to content

Commit dc1dbe6

Browse files
Add SDL_HAPTIC_LEFTRIGHT
1 parent b819b32 commit dc1dbe6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

units/sdlhaptic.inc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,13 @@ const
133133
* SDL_HapticPeriodic
134134
*}
135135
const
136-
SDL_HAPTIC_SQUARE = (1 shl 2);
136+
SDL_HAPTIC_LEFTRIGHT = (1 shl 2);
137+
138+
{ !!! FIXME: put this back when we have more bits in 2.1 }
139+
{ #define SDL_HAPTIC_SQUARE (1<<2) }
140+
SDL_HAPTIC_SQUARE = (1 shl 2); // SDL2-For-Pascal: Out-commented in C code.
141+
// Why not keeping it for
142+
// compatibility here?
137143

138144
{**
139145
* Triangle wave effect supported.

0 commit comments

Comments
 (0)