SDL_gesture.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*
  2. SDL - Simple DirectMedia Layer
  3. Copyright (C) 1997-2010 Sam Lantinga
  4. This library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with this library; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  15. Sam Lantinga
  16. [email protected]
  17. */
  18. /**
  19. * \file SDL_gesture.h
  20. *
  21. * Include file for SDL gesture event handling.
  22. */
  23. #ifndef _SDL_gesture_h
  24. #define _SDL_gesture_h
  25. #include "SDL_stdinc.h"
  26. #include "SDL_error.h"
  27. #include "SDL_video.h"
  28. #include "SDL_touch.h"
  29. #include "begin_code.h"
  30. /* Set up for C function definitions, even when using C++ */
  31. #ifdef __cplusplus
  32. /* *INDENT-OFF* */
  33. extern "C" {
  34. /* *INDENT-ON* */
  35. #endif
  36. typedef Sint64 SDL_GestureID;
  37. /* Function prototypes */
  38. /**
  39. * \brief Begin Recording a gesture on the specified touch, or all touches (-1)
  40. *
  41. *
  42. */
  43. extern DECLSPEC int SDLCALL SDL_RecordGesture(SDL_TouchID touchId);
  44. /**
  45. * \brief Save all currently loaded Dollar Gesture templates
  46. *
  47. *
  48. */
  49. extern DECLSPEC int SDLCALL SDL_SaveAllDollarTemplates(SDL_RWops *src);
  50. /**
  51. * \brief Save a currently loaded Dollar Gesture template
  52. *
  53. *
  54. */
  55. extern DECLSPEC int SDLCALL SDL_SaveDollarTemplate(SDL_GestureID gestureId,SDL_RWops *src);
  56. /**
  57. * \brief Load Dollar Gesture templates from a file
  58. *
  59. *
  60. */
  61. extern DECLSPEC int SDLCALL SDL_LoadDollarTemplates(SDL_TouchID touchId, SDL_RWops *src);
  62. /* Ends C function definitions when using C++ */
  63. #ifdef __cplusplus
  64. /* *INDENT-OFF* */
  65. }
  66. /* *INDENT-ON* */
  67. #endif
  68. #include "close_code.h"
  69. #endif /* _SDL_gesture_h */
  70. /* vi: set ts=4 sw=4 expandtab: */