Browse Source

Backends: GLFW+Emscripten: Fixed build (#7647)

ocornut 1 year ago
parent
commit
a8e96ae21a
2 changed files with 5 additions and 1 deletions
  1. 1 1
      backends/imgui_impl_glfw.cpp
  2. 4 0
      docs/CHANGELOG.txt

+ 1 - 1
backends/imgui_impl_glfw.cpp

@@ -139,7 +139,7 @@ struct ImGui_ImplGlfw_Data
     ImVec2                  LastValidMousePos;
     bool                    InstalledCallbacks;
     bool                    CallbacksChainForAllWindows;
-#if EMSCRIPTEN_USE_EMBEDDED_GLFW3
+#ifdef EMSCRIPTEN_USE_EMBEDDED_GLFW3
     const char*             CanvasSelector;
 #endif
 

+ 4 - 0
docs/CHANGELOG.txt

@@ -68,6 +68,10 @@ Other changes:
 - Backends: SDL2,SDL3,OSX: Update for io.SetPlatformImeDataFn() -> io.PlatformSetImeDataFn() rename.
 - Backends: GLFW,SDL2: Added io.PlatformOpenInShellFn handler for web/Emscripten versions. (#7660)
   [@ypujante, @ocornut]
+- Backends; GLFW+Emscripten: Added support for GLFW3 contrib port which fixes many of the things
+  not supported by the embedded GLFW: gamepad support, mouse cursor shapes, copy to clipboard,
+  workaround for Super/Meta key, different ways of resizing, multi-window (glfw/canvas) support.
+  (#7647) [@ypujante]
 - Backends: GLFW+Emscripten: Fixed Emscripten warning when using mouse wheel on some setups
   "Unable to preventDefault inside passive event listener". (#7647, #7600) [@ypujante]