Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
2.1 KiB

  1. /*
  2. Simple DirectMedia Layer
  3. Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
  4. This software is provided 'as-is', without any express or implied
  5. warranty. In no event will the authors be held liable for any damages
  6. arising from the use of this software.
  7. Permission is granted to anyone to use this software for any purpose,
  8. including commercial applications, and to alter it and redistribute it
  9. freely, subject to the following restrictions:
  10. 1. The origin of this software must not be misrepresented; you must not
  11. claim that you wrote the original software. If you use this software
  12. in a product, an acknowledgment in the product documentation would be
  13. appreciated but is not required.
  14. 2. Altered source versions must be plainly marked as such, and must not be
  15. misrepresented as being the original software.
  16. 3. This notice may not be removed or altered from any source distribution.
  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. extern "C" {
  33. #endif
  34. typedef Sint64 SDL_GestureID;
  35. /* Function prototypes */
  36. /**
  37. * \brief Begin Recording a gesture on the specified touch, or all touches (-1)
  38. *
  39. *
  40. */
  41. extern DECLSPEC int SDLCALL SDL_RecordGesture(SDL_TouchID touchId);
  42. /**
  43. * \brief Save all currently loaded Dollar Gesture templates
  44. *
  45. *
  46. */
  47. extern DECLSPEC int SDLCALL SDL_SaveAllDollarTemplates(SDL_RWops *dst);
  48. /**
  49. * \brief Save a currently loaded Dollar Gesture template
  50. *
  51. *
  52. */
  53. extern DECLSPEC int SDLCALL SDL_SaveDollarTemplate(SDL_GestureID gestureId,SDL_RWops *dst);
  54. /**
  55. * \brief Load Dollar Gesture templates from a file
  56. *
  57. *
  58. */
  59. extern DECLSPEC int SDLCALL SDL_LoadDollarTemplates(SDL_TouchID touchId, SDL_RWops *src);
  60. /* Ends C function definitions when using C++ */
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64. #include "close_code.h"
  65. #endif /* _SDL_gesture_h */
  66. /* vi: set ts=4 sw=4 expandtab: */