SDL_touch.h 921 B

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