[client] all: move all SDL specific code into displayservers/sdl

This commit is contained in:
Geoffrey McRae
2021-01-26 21:46:30 +11:00
parent 7ff5da4d62
commit ca5c3938e4
24 changed files with 569 additions and 406 deletions

View File

@@ -35,9 +35,11 @@ typedef enum LG_MsgAlert
}
LG_MsgAlert;
SDL_Window * app_getWindow(void);
bool app_getProp(LG_DSProperty prop, void * ret);
EGLNativeWindowType app_getEGLNativeWindow(void);
EGLDisplay app_getEGLDisplay(void);
bool app_inputEnabled(void);
bool app_cursorIsGrabbed(void);
bool app_cursorWantsRaw(void);
@@ -56,6 +58,10 @@ void app_handleEnterEvent(bool entered);
void app_handleFocusEvent(bool focused);
void app_handleCloseEvent(void);
void app_setFullscreen(bool fs);
void app_glSwapBuffers(void);
void app_clipboardRelease(void);
void app_clipboardNotify(const LG_ClipboardData type, size_t size);
void app_clipboardData(const LG_ClipboardData type, uint8_t * data, size_t size);
@@ -93,4 +99,5 @@ void app_releaseKeybind(KeybindHandle * handle);
*/
void app_releaseAllKeybinds(void);
#endif