Skip to content

Keyboard not working in local wasm build #653

@darabos

Description

@darabos

Hi,
Thanks for Pyxel, I love it! I wanted to use a custom shader, so I replaced crisp.frag and ran make build-wasm. I got a new pyxel-2.5.7-cp38-abi3-emscripten_3_1_58_wasm32.whl and when I use it with pyxel.js it's using my shader and everything is working. Except the keyboard! I looked inside poll_events.rs and the mouse move/click events are still received from SDL_PollEvent but the keyboard events are not. If I use the official pyxel-2.5.7-cp38-abi3-emscripten_3_1_58_wasm32.whl the keyboard works.

I've no idea what could be wrong. My build uses https://github.com/libsdl-org/SDL/archive/release-2.28.4.zip and Emscripten 3.1.58 which I think match the official build. Maturin is 1.9.4. I'm building on Ubuntu 24.04.3.

Any advice is appreciated! Thanks!

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