SDL_events_c.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. Simple DirectMedia Layer
  3. Copyright (C) 1997-2025 Sam Lantinga <[email protected]>
  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. #ifndef SDL_events_c_h_
  19. #define SDL_events_c_h_
  20. #include "SDL_internal.h"
  21. // Useful functions and variables from SDL_events.c
  22. //#include "../video/SDL_sysvideo.h"
  23. #include "SDL_mouse_c.h"
  24. // Start and stop the event processing loop
  25. extern bool SDL_StartEventLoop(void);
  26. extern void SDL_StopEventLoop(void);
  27. extern void SDL_QuitInterrupt(void);
  28. extern void SDL_SendAppEvent(SDL_EventType eventType);
  29. extern void SDL_SendKeymapChangedEvent(void);
  30. extern void SDL_SendLocaleChangedEvent(void);
  31. extern void SDL_SendSystemThemeChangedEvent(void);
  32. extern void *SDL_AllocateTemporaryMemory(size_t size);
  33. extern const char *SDL_CreateTemporaryString(const char *string);
  34. extern void *SDL_ClaimTemporaryMemory(const void *mem);
  35. extern void SDL_FreeTemporaryMemory(void);
  36. extern void SDL_PumpEventMaintenance(void);
  37. extern void SDL_SendQuit(void);
  38. extern bool SDL_InitEvents(void);
  39. extern void SDL_QuitEvents(void);
  40. extern void SDL_SendPendingSignalEvents(void);
  41. extern bool SDL_InitQuit(void);
  42. extern void SDL_QuitQuit(void);
  43. #endif // SDL_events_c_h_