mirror of
https://github.com/love2d/megasource.git
synced 2026-08-18 19:54:37 +02:00
update SDL3 to 3.4.10.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||
Copyright (C) 1997-2026 Sam Lantinga <slouken@libsdl.org>
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
@@ -434,7 +434,7 @@ static void loop(void)
|
||||
}
|
||||
|
||||
/* Slow down framerate */
|
||||
SDL_Delay(100);
|
||||
SDL_Delay(10);
|
||||
|
||||
#ifdef SDL_PLATFORM_EMSCRIPTEN
|
||||
if (done) {
|
||||
@@ -447,6 +447,9 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
int i;
|
||||
|
||||
/* This is not necessary for text input handling, we just
|
||||
* want to verify that input works with raw keyboard enabled.
|
||||
*/
|
||||
SDL_SetHint(SDL_HINT_WINDOWS_RAW_KEYBOARD, "1");
|
||||
|
||||
/* Initialize test framework */
|
||||
@@ -464,6 +467,9 @@ int main(int argc, char *argv[])
|
||||
/* Disable mouse emulation */
|
||||
SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0");
|
||||
|
||||
/* Enable text editing events and tell SDL that we'll handle rendering compositions. */
|
||||
SDL_SetHint(SDL_HINT_IME_IMPLEMENTED_UI, "composition");
|
||||
|
||||
/* Initialize SDL */
|
||||
if (!SDLTest_CommonInit(state)) {
|
||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't initialize SDL: %s", SDL_GetError());
|
||||
|
||||
Reference in New Issue
Block a user