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.5 KiB

  1. /*
  2. Simple DirectMedia Layer
  3. Copyright (C) 1997-2013 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_input.h
  20. *
  21. * Include file for lowlevel SDL input device handling.
  22. *
  23. * This talks about individual devices, and not the system cursor. If you
  24. * just want to know when the user moves the pointer somewhere in your
  25. * window, this is NOT the API you want. This one handles things like
  26. * multi-touch, drawing tablets, and multiple, separate mice.
  27. *
  28. * The other API is in SDL_mouse.h
  29. */
  30. #ifndef _SDL_input_h
  31. #define _SDL_input_h
  32. #include "SDL_stdinc.h"
  33. #include "SDL_error.h"
  34. #include "SDL_video.h"
  35. #include "begin_code.h"
  36. /* Set up for C function definitions, even when using C++ */
  37. #ifdef __cplusplus
  38. /* *INDENT-OFF* */
  39. extern "C" {
  40. /* *INDENT-ON* */
  41. #endif
  42. /* Function prototypes */
  43. /* !!! FIXME: real documentation
  44. * - Redetect devices
  45. * - This invalidates all existing device information from previous queries!
  46. * - There is an implicit (re)detect upon SDL_Init().
  47. */
  48. extern DECLSPEC int SDLCALL SDL_RedetectInputDevices(void);
  49. /**
  50. * \brief Get the number of mouse input devices available.
  51. */
  52. extern DECLSPEC int SDLCALL SDL_GetNumInputDevices(void);
  53. /**
  54. * \brief Gets the name of a device with the given index.
  55. *
  56. * \param index is the index of the device, whose name is to be returned.
  57. *
  58. * \return the name of the device with the specified index
  59. */
  60. extern DECLSPEC const char *SDLCALL SDL_GetInputDeviceName(int index);
  61. extern DECLSPEC int SDLCALL SDL_IsDeviceDisconnected(int index);
  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_mouse_h */
  70. /* vi: set ts=4 sw=4 expandtab: */