SDL2: added the missing patch

This commit is contained in:
Jacker 2023-03-12 14:45:22 +02:00
parent 7730fd9c9d
commit d6431d4a3d
No known key found for this signature in database
GPG Key ID: CC846B58E6BDCFF2
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
--- src/video/wayland/SDL_waylandevents.c 2023-03-12 11:34:57.705357013 +0000
+++ src/video/wayland/SDL_waylandevents.c 2023-03-12 11:35:02.320769000 +0000
@@ -1129,7 +1129,8 @@
const SDL_Scancode scancode = Wayland_get_scancode_from_key(input, *key + 8);
if (scancode != SDL_SCANCODE_UNKNOWN) {
- for (uint32_t i = 0; i < sizeof mod_scancodes / sizeof *mod_scancodes; ++i) {
+ uint32_t i;
+ for (i = 0; i < sizeof mod_scancodes / sizeof *mod_scancodes; ++i) {
if (mod_scancodes[i] == scancode) {
SDL_SendKeyboardKey(SDL_PRESSED, scancode);
break;