From dec7875a6e23212021e4d9080330a42832dfe02a Mon Sep 17 00:00:00 2001
From: Edward Rudd <urkle@outoforder.cc>
Date: Tue, 15 Jun 2021 01:40:19 +0000
Subject: [PATCH] update SDL soruce to 2.0.14
---
source/src/video/uikit/SDL_uikitvideo.m | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/source/src/video/uikit/SDL_uikitvideo.m b/source/src/video/uikit/SDL_uikitvideo.m
index 807b8d5..8adaaff 100644
--- a/source/src/video/uikit/SDL_uikitvideo.m
+++ b/source/src/video/uikit/SDL_uikitvideo.m
@@ -52,12 +52,6 @@
/* DUMMY driver bootstrap functions */
-static int
-UIKit_Available(void)
-{
- return 1;
-}
-
static void UIKit_DeleteDevice(SDL_VideoDevice * device)
{
@autoreleasepool {
@@ -102,6 +96,7 @@
device->DestroyWindow = UIKit_DestroyWindow;
device->GetWindowWMInfo = UIKit_GetWindowWMInfo;
device->GetDisplayUsableBounds = UIKit_GetDisplayUsableBounds;
+ device->GetDisplayDPI = UIKit_GetDisplayDPI;
#if SDL_IPHONE_KEYBOARD
device->HasScreenKeyboardSupport = UIKit_HasScreenKeyboardSupport;
@@ -139,6 +134,8 @@
#if SDL_VIDEO_METAL
device->Metal_CreateView = UIKit_Metal_CreateView;
device->Metal_DestroyView = UIKit_Metal_DestroyView;
+ device->Metal_GetLayer = UIKit_Metal_GetLayer;
+ device->Metal_GetDrawableSize = UIKit_Metal_GetDrawableSize;
#endif
device->gl_config.accelerated = 1;
@@ -149,7 +146,7 @@
VideoBootStrap UIKIT_bootstrap = {
UIKITVID_DRIVER_NAME, "SDL UIKit video driver",
- UIKit_Available, UIKit_CreateDevice
+ UIKit_CreateDevice
};
@@ -161,12 +158,19 @@
if (UIKit_InitModes(_this) < 0) {
return -1;
}
+
+ SDL_InitGCKeyboard();
+ SDL_InitGCMouse();
+
return 0;
}
void
UIKit_VideoQuit(_THIS)
{
+ SDL_QuitGCKeyboard();
+ SDL_QuitGCMouse();
+
UIKit_QuitModes(_this);
}
--
Gitblit v1.9.3