Commit Graph
12 Commits
Author SHA1 Message Date
Bartosz Taudul eb3df3b411 Fix blurred web page at fractional scaling. 2026-05-13 21:53:58 +02:00
DaniPopes 7d27fe6ff9 fix: handle paste events in wasm backend
Listen for browser paste events and directly inject clipboard text via
AddInputCharactersUTF8. Also suppress character input when Ctrl/Meta is
held to prevent 'v' from being typed on Cmd+V.
2026-02-11 23:42:45 -05:00
DaniPopes a23e910d5f Implement clipboard support for WASM backend
The Emscripten backend was missing Platform_SetClipboardTextFn/GetClipboardTextFn,
so ImGui::SetClipboardText was a no-op in the browser.
Hook navigator.clipboard.writeText for writes and keep a local copy for reads.
2026-02-07 03:36:25 +01:00
Bartosz Taudul 8819ea745d Another stray DPI setting in emscripten. 2024-09-28 14:04:17 +02:00
Bartosz Taudul 44ae59f363 Enforce DPI scale setup on first render frame.
Not all backends know their DPI before window is available.
2024-09-28 13:54:39 +02:00
Bartosz Taudul 616e7c2eec Retrieve ImGui with CPM.
ImGui OpenGL loader is patched, and not regenerated, because the gl3w
script requires network connectivity to download the header files from
Khronos at build time.
2024-09-27 15:55:22 +02:00
Bartosz Taudul 684c34dc21 Handle focus in/out on emscripten to fix mouse button stickiness. 2024-09-25 00:36:55 +02:00
Bartosz Taudul 8b9da2efba Add support for setting mouse cursor on emscripten. 2024-09-20 23:30:21 +02:00
Bartosz Taudul e793f927fc Add feels-good scaling factor to wheel scroll values. 2024-09-19 21:02:58 +02:00
Bartosz Taudul 4795011b12 Remove debug printf. 2024-09-19 20:58:05 +02:00
Bartosz Taudul f971faab58 Fix horizontal wheel scroll direction. 2024-09-19 20:53:44 +02:00
Bartosz Taudul 1109e3ce2d Add html5.h emscripten backend. 2024-09-19 19:56:52 +02:00