Path: blob/master/thirdparty/sdl/events/SDL_events_c.h
9902 views
/*1Simple DirectMedia Layer2Copyright (C) 1997-2025 Sam Lantinga <[email protected]>34This software is provided 'as-is', without any express or implied5warranty. In no event will the authors be held liable for any damages6arising from the use of this software.78Permission is granted to anyone to use this software for any purpose,9including commercial applications, and to alter it and redistribute it10freely, subject to the following restrictions:11121. The origin of this software must not be misrepresented; you must not13claim that you wrote the original software. If you use this software14in a product, an acknowledgment in the product documentation would be15appreciated but is not required.162. Altered source versions must be plainly marked as such, and must not be17misrepresented as being the original software.183. This notice may not be removed or altered from any source distribution.19*/2021#ifndef SDL_events_c_h_22#define SDL_events_c_h_2324#include "SDL_internal.h"2526// Useful functions and variables from SDL_events.c27//#include "../video/SDL_sysvideo.h"2829#include "SDL_mouse_c.h"3031// Start and stop the event processing loop32extern bool SDL_StartEventLoop(void);33extern void SDL_StopEventLoop(void);34extern void SDL_QuitInterrupt(void);3536extern void SDL_SendAppEvent(SDL_EventType eventType);37extern void SDL_SendKeymapChangedEvent(void);38extern void SDL_SendLocaleChangedEvent(void);39extern void SDL_SendSystemThemeChangedEvent(void);4041extern void *SDL_AllocateTemporaryMemory(size_t size);42extern const char *SDL_CreateTemporaryString(const char *string);43extern void *SDL_ClaimTemporaryMemory(const void *mem);44extern void SDL_FreeTemporaryMemory(void);4546extern void SDL_PumpEventMaintenance(void);4748extern void SDL_SendQuit(void);4950extern bool SDL_InitEvents(void);51extern void SDL_QuitEvents(void);5253extern void SDL_SendPendingSignalEvents(void);5455extern bool SDL_InitQuit(void);56extern void SDL_QuitQuit(void);5758#endif // SDL_events_c_h_596061