DEADSOFTWARE

put "{$MODE ...}" directive in each source file; removed trailing spaces, and convert...
[d2df-sdl.git] / src / lib / sdl2 / sdltouch.inc
1 //from "sdl_touch.h"
3 type
4 PSDL_TouchID = ^TSDL_TouchID;
5 TSDL_TouchID = SInt64;
7 PSDL_FingerID = ^TSDL_FingerID;
8 TSDL_FingerID = SInt64;
10 PSDL_Finger = ^TSDL_Finger;
11 TSDL_Finger = record
12 id: TSDL_FingerID;
13 x: Float;
14 y: Float;
15 pressure: Float;
16 end;
18 {* Used as the device ID for mouse events simulated with touch input *}
19 const
20 SDL_TOUCH_MOUSEID = UInt32(-1);
22 {* Function prototypes *}
24 {**
25 * Get the number of registered touch devices.
26 *}
27 function SDL_GetNumTouchDevices: SInt32 cdecl; external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_GetNumTouchDevices' {$ENDIF} {$ENDIF};
29 {**
30 * Get the touch ID with the given index, or 0 if the index is invalid.
31 *}
32 function SDL_GetTouchDevice(index: SInt32): TSDL_TouchID cdecl; external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_GetTouchDevice' {$ENDIF} {$ENDIF};
34 {**
35 * Get the number of active fingers for a given touch device.
36 *}
37 function SDL_GetNumTouchFingers(touchID: TSDL_TouchID): SInt32 cdecl; external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_GetNumTouchFingers' {$ENDIF} {$ENDIF};
39 {**
40 * Get the finger object of the given touch, with the given index.
41 *}
42 function SDL_GetTouchFinger(touchID: TSDL_TouchID; index: SInt32): PSDL_Finger cdecl; external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_GetTouchFinger' {$ENDIF} {$ENDIF};