Skip to content

Releases: pongasoft/emscripten-glfw

Version 3.4.0.20250209

09 Feb 16:52
Compare
Choose a tag to compare
  • Added support for touch (mobile)
  • Added support for wasm64 (-sMEMORY64 Emscripten option)

Version 3.4.0.20250117

17 Jan 13:57
Compare
Choose a tag to compare
  • Added port option disableWebGL2 to disable support for WebGL2 when not needed (reduces JavaScript code size)

Version 3.4.0.20250112

12 Jan 15:07
Compare
Choose a tag to compare
  • Added support for GLFW_CONTEXT_VERSION_MAJOR and GLFW_CONTEXT_VERSION_MINOR
  • Re-enable GL extensions by default (regression introduced in 3.4.0.20241230). Fixes #13

Version 3.4.0.20241230

30 Dec 14:52
Compare
Choose a tag to compare

Version 2024.12.21

21 Dec 17:19
Compare
Choose a tag to compare
  • Added support for pthread (check example_pthread for a comprehensive example)

Version 3.4.0.20241004

04 Oct 16:57
Compare
Choose a tag to compare
  • Implemented custom cursors (glfwCreateCursor)
    • uses a canvas to draw the cursor image into it and convert it into a URL (canvas.toDataURL())
    • uses the CSS property syntax: cursor: url(xxx) xhot yhot, auto when calling glfwSetCursor with a custom cursor

Version 3.4.0.20240907

07 Sep 17:00
Compare
Choose a tag to compare
  • Fixed Meta/Super key workaround to also handle the rare (but possible) use-case of having other keys down before
    pressing the Meta/Super key

Version 3.4.0.20240817

18 Aug 14:24
Compare
Choose a tag to compare
  • Major clipboard changes: the clipboard now uses the browser events to handle cut, copy and paste
  • Added a way to tweak the timeouts for the Super + Key workaround (Super is also known as Meta or Cmd)
  • Added a way to set which keys are allowed to be handled by the browser
  • Added a convenient API to open a URL (emscripten::glfw3::OpenURL)
  • Added a convenient API to detect if the runtime platform is Apple (emscripten::glfw3::IsRuntimePlatformApple),
    mostly used for keyboard shortcuts (Ctrl vs. Cmd).
  • Added GLFW/emscripten_glfw3_version.h with EMSCRIPTEN_GLFW_VERSION define for compilation time version detection
  • EMSCRIPTEN_USE_PORT_CONTRIB_GLFW3 port define now also contains the version

Warning

Breaking changes!
The clipboard async API has been removed. Check the Clipboard support section for details on how to deal with the clipboard in your application.

Version 3.4.0.20240804

04 Aug 21:52
Compare
Choose a tag to compare
  • Fixed nullptr issue when clipboard is emtpy
  • Fixed the internal clipboard being wiped on asynchronous callback error

Version 3.4.0.20240731

31 Jul 13:03
Compare
Choose a tag to compare
  • Added emscripten_glfw_get_clipboard_string the C version of emscripten::glfw3::GetClipboardString to
    retrieve the clipboard asynchronously
  • Added a helper class emscripten::glfw3::FutureClipboardString to greatly simplify the more frequent use-cases
  • GetClipboardString::value() now returns the internal clipboard in case of error, instead of throwing exception
  • Added optimizationLevel option to the emscripten port