Procházet zdrojové kódy

Sync SDL3 wiki -> header

SDL Wiki Bot před 1 rokem
rodič
revize
5755bde3b8
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      docs/README-wayland.md

+ 1 - 1
docs/README-wayland.md

@@ -194,7 +194,7 @@ int main(int argc, char *argv[])
     /* Draw a blue screen for the window until ESC is pressed or the window is no longer visible. */
     /* Draw a blue screen for the window until ESC is pressed or the window is no longer visible. */
     while (!done) {
     while (!done) {
         while (SDL_PollEvent(&e)) {
         while (SDL_PollEvent(&e)) {
-            if (e.type == SDL_EVENT_KEY_DOWN && e.key.keysym.sym == SDLK_ESCAPE) {
+            if (e.type == SDL_EVENT_KEY_DOWN && e.key.key == SDLK_ESCAPE) {
                 done = 1;
                 done = 1;
             }
             }
         }
         }