-
Notifications
You must be signed in to change notification settings - Fork 919
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
Emscripten rework #286
Merged
Merged
Emscripten rework #286
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this pull request contain a partial but working implementation of emscripten backend some implementations may be controversial. here some implementation detail: * cursor state: * on grab: emscripten request pointer lock deferred and also set a callback when pointer lock change the callback request pointer lock deferred. * on hide: `emscripten_hide_mouse` exist but not `emscripten_show_mouse` a pull request has been open on october 2016 but never been merged so I copied the javascript function and put it in emscripten_asm_const function * fullscreen: if fullscreen is requested then it request fullscreen deferred and set a callback on fullscreen change the callback request fullscreen deferred * run forever: this method use emscripten main loop to run an infinite loop * keyboard callback doesn't consume the event. I think it is more apopriate as in desktop environment it is the same, is it ? * emscripten dir is added in example and contains html pages Some things that are not implemented: * lots of events * min and max dimension can be implemented with a callback that listen to size change and resize if dimension out of bound * title may be implemented using javascript to change document.title
you may also be interested by the work made to implement emscipten in glutin rust-windowing/glutin#857 |
I think the best course of action right now is to just merge this PR (so that something is working), and then iterate over it. |
tmfink
pushed a commit
to tmfink/winit
that referenced
this pull request
Jan 5, 2022
Closes rust-windowing#264. Possibly addresses rust-windowing#286.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.