Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Teselka
Copy link
Contributor

@Teselka Teselka commented Dec 15, 2025

This is an implementation of the emscripten backend with opengl3 renderer as an example.

Features:

  • Clipboard (without IME).
  • Mouse (including mouse/touch/pen with IMGUI_IMPL_EMSCRIPTEN_POINTER_EVENTS, otherwise supports mouse only, touch input api worked bad for me).
  • Keyboard (including edge case with tab/backspace interaction, see here).
  • Mouse cursor and shape (implemented with document.querySelector(target_id).style.cursor = shape;)
  • Dynamic canvas resizing (with user ImGui_ImplEmscripten_UpdateCanvasSize api).
  • Gamepad.
  • Numpad (i don't have keyboard with a numpad).

#8178

@Teselka
Copy link
Contributor Author

Teselka commented Dec 18, 2025

Added gamepad support for it, tried to match final analog input with the win32 backend.

@Teselka Teselka changed the title Implement imgui_impl_emscripten Implement emscripten backend + opengl3 example Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants