mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-27 19:19:41 +08:00
Fixed pen events on iOS after reinitializing SDL
We weren't resetting apple_pencil_id, so not re-registering it later.
This commit is contained in:
@@ -37,6 +37,7 @@
|
|||||||
#include "SDL_uikitvulkan.h"
|
#include "SDL_uikitvulkan.h"
|
||||||
#include "SDL_uikitmetalview.h"
|
#include "SDL_uikitmetalview.h"
|
||||||
#include "SDL_uikitmessagebox.h"
|
#include "SDL_uikitmessagebox.h"
|
||||||
|
#include "SDL_uikitpen.h"
|
||||||
|
|
||||||
#define UIKITVID_DRIVER_NAME "uikit"
|
#define UIKITVID_DRIVER_NAME "uikit"
|
||||||
|
|
||||||
@@ -170,6 +171,7 @@ static void UIKit_VideoQuit(SDL_VideoDevice *_this)
|
|||||||
|
|
||||||
SDL_QuitGCKeyboard();
|
SDL_QuitGCKeyboard();
|
||||||
SDL_QuitGCMouse();
|
SDL_QuitGCMouse();
|
||||||
|
UIKit_QuitPen(_this);
|
||||||
|
|
||||||
UIKit_QuitModes(_this);
|
UIKit_QuitModes(_this);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user