Skip to content

HTML5 keypress event not working with SDL #6476

@eduardodoria

Description

@eduardodoria

I'm trying to catch html5 keypress event (emscripten_set_keypress_callback) when using SDL, but it's not working. If I comment SDL_Init(SDL_INIT_VIDEO) it works.
Also, if I compile SDL (<SDL/SDL.h>) with parameter -s USE_SDL=2 it works too.

Tested with Emscripten 1.37.19 and 1.37.38.

Am I doing something wrong or is it a issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions