Skip to content

Patch all global event handlers #1

@devappd

Description

@devappd

Some event handlers in emscripten are hardcoded to attach to document or window. Here's what needs to be patched to scope to the component:

  • keydown/keypress/keyup, JSEvents.registerOrRemoveHandler -- Handles SDL key events in WASM
  • keydown/keypress/keyup, Module['keyboardListeningElement'] -- Used by emscripten-core/emscripten/src/library_sdl.js (in Fastcomp backend?)
  • keydown/keypress/keyup, emscripten-core/emscripten/src/library_glfw.js
    • Calls window.addEventListener directly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions