blender/extern/sdlew/include/SDL2/SDL_touch.h
Sergey Sharybin 80d1d624d3 Support dynamic loading of SDL libraries
This is mainly to address old issue when one need to have SDL library installed
in order to use our official builds. Some hip distros already installs SDL,
but it's not quite the same across all the variety of the distros.

We also now switching to SDL-2.0, most of the distros have it in repositories
already, so it shouldn't be huge deal to install it if needed.

Reviewers: campbellbarton

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D878
2014-11-17 17:43:18 +05:00

48 lines
921 B
C

#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