blob: bd8ded65748c06ec01997686d0f0b93742f56ca7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#ifndef _SDL_touch_h
#define _SDL_touch_h
#include "SDL_stdinc.h"
#include "SDL_error.h"
#include "SDL_video.h"
#include "begin_code.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef Sint64 SDL_TouchID;
typedef Sint64 SDL_FingerID;
typedef struct SDL_Finger
{
SDL_FingerID id;
float x;
float y;
float pressure;
} SDL_Finger;
#define SDL_TOUCH_MOUSEID ((Uint32)-1)
typedef int SDLCALL tSDL_GetNumTouchDevices(void);
typedef SDL_TouchID SDLCALL tSDL_GetTouchDevice(int index);
typedef int SDLCALL tSDL_GetNumTouchFingers(SDL_TouchID touchID);
typedef SDL_Finger * SDLCALL tSDL_GetTouchFinger(SDL_TouchID touchID, int index);
extern tSDL_GetNumTouchDevices *SDL_GetNumTouchDevices;
extern tSDL_GetTouchDevice *SDL_GetTouchDevice;
extern tSDL_GetNumTouchFingers *SDL_GetNumTouchFingers;
extern tSDL_GetTouchFinger *SDL_GetTouchFinger;
#ifdef __cplusplus
}
#endif
#include "close_code.h"
#endif
|