minecraft-pi-reborn/media-layer/include/SDL/SDL.h

36 lines
696 B
C
Raw Permalink Normal View History

2021-06-17 21:32:24 +00:00
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include "SDL_keysym.h"
#include "SDL_events.h"
#include "SDL_syswm.h"
#include "SDL_version.h"
2024-10-20 05:19:08 +00:00
int media_SDL_Init(uint32_t flags);
int media_SDL_PollEvent(SDL_Event *event);
int media_SDL_PushEvent(SDL_Event *event);
void media_SDL_WM_SetCaption(const char *title, const char *icon);
2021-06-17 21:32:24 +00:00
typedef enum {
SDL_GRAB_QUERY = -1,
SDL_GRAB_OFF = 0,
SDL_GRAB_ON = 1,
SDL_GRAB_FULLSCREEN
} SDL_GrabMode;
2024-10-20 05:19:08 +00:00
SDL_GrabMode media_SDL_WM_GrabInput(SDL_GrabMode mode);
2021-06-17 21:32:24 +00:00
2024-10-20 05:19:08 +00:00
#define SDL_QUERY (-1)
2021-06-17 21:32:24 +00:00
#define SDL_IGNORE 0
#define SDL_DISABLE 0
#define SDL_ENABLE 1
2024-10-20 05:19:08 +00:00
int media_SDL_ShowCursor(int toggle);
2021-06-17 21:32:24 +00:00
#ifdef __cplusplus
}
#endif