4 PSDL_TouchID = ^TSDL_TouchID;
7 PSDL_FingerID = ^TSDL_FingerID;
8 TSDL_FingerID = SInt64;
10 PSDL_Finger = ^TSDL_Finger;
18 {* Used as the device ID for mouse events simulated with touch input *}
20 SDL_TOUCH_MOUSEID = UInt32(-1);
22 {* Function prototypes *}
25 * Get the number of registered touch devices.
27 function SDL_GetNumTouchDevices: SInt32 cdecl; external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_GetNumTouchDevices' {$ENDIF} {$ENDIF};
30 * Get the touch ID with the given index, or 0 if the index is invalid.
32 function SDL_GetTouchDevice(index: SInt32): TSDL_TouchID cdecl; external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_GetTouchDevice' {$ENDIF} {$ENDIF};
35 * Get the number of active fingers for a given touch device.
37 function SDL_GetNumTouchFingers(touchID: TSDL_TouchID): SInt32 cdecl; external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_GetNumTouchFingers' {$ENDIF} {$ENDIF};
40 * Get the finger object of the given touch, with the given index.
42 function SDL_GetTouchFinger(touchID: TSDL_TouchID; index: SInt32): PSDL_Finger cdecl; external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_GetTouchFinger' {$ENDIF} {$ENDIF};