Skip to content

Commit

Permalink
fix key events bug (wasm) + update release
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Jan 14, 2025
1 parent 76342ba commit b4f3421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/RGFW.h
Original file line number Diff line number Diff line change
Expand Up @@ -9460,7 +9460,7 @@ RGFW_window* RGFW_createWindowPtr(const char* name, RGFW_rect rect, RGFW_windowF


EM_ASM({
window.addEventListener("keydown",
window.addEventListener("keyup",
(event) => {
Module._RGFW_handleKeyMods(event.getModifierState("CapsLock"), event.getModifierState("NumLock"), event.getModifierState("Control"), event.getModifierState("Alt"), event.getModifierState("Shift"), event.getModifierState("Meta"));
Module._RGFW_handleKeyEvent(stringToNewUTF8(event.key), stringToNewUTF8(event.code), 0);
Expand Down

0 comments on commit b4f3421

Please sign in to comment.