Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

Send a keyboard button press through a js function #144

@ericoporto

Description

@ericoporto

Hi,

I would like to send a key like f12 or alt+enter to my Emscripten built engine from a JS function. The reason is these are buttons that do special things in the engine, but they aren't easily available on the phones, so I would like to place a little overlay with some screen buttons in the html that would send these button presses to the engine.

Is there an easy way to leverage the SDL2 port to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions