Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: WebAssemby support? #93

Closed
axiys opened this issue Nov 23, 2022 · 2 comments
Closed

Enhancement: WebAssemby support? #93

axiys opened this issue Nov 23, 2022 · 2 comments

Comments

@axiys
Copy link

axiys commented Nov 23, 2022

Has anyone tried to get minifb working via Emscripten (generate WebAssembly)? I am thinking of adding support for it for my simulation platform in minifb. Are you all ok for some pull requests with appropriate flags and demos?

It may be possible and then support not only framebuffers but most of the keyboard and mouse events.

Example: https://wasmbyexample.dev/examples/reading-and-writing-graphics/reading-and-writing-graphics.go.en-us.html

@axiys axiys changed the title WebAssemby support? Enhancement: WebAssemby support? Nov 23, 2022
@Darky-Lucera
Copy link
Collaborator

It will be nice having support for webAssembly

@badlogic
Copy link
Contributor

I went ahead and started building just this for a personal project:
https://github.com/badlogic/r96

I'm not sure what the best way would be to get this into upstream minifb. Maybe it can serve as a basis for anyone who wants to make this into a proper minifb feature :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants