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

more implementations #1

Merged
merged 5 commits into from
Mar 21, 2017
Merged

more implementations #1

merged 5 commits into from
Mar 21, 2017

Conversation

gui1117
Copy link

@gui1117 gui1117 commented Mar 20, 2017

this pull request contains some implementations:

  • hdpi factor
  • get/set window size (use emscripten_set_canvas_size instead of emscripten_set_element_css_size)
  • build with fullscreen or window dimensions
  • set_cursor_state: grabbing use pointerlock, read commit message for more explanation

thiolliere added 5 commits March 18, 2017 15:58
grab mode use pointerlock https://www.w3.org/TR/pointerlock/
this behavior is not the same as other backend.

I wanted this because as set_cursor_position is not available on
emscripten backend. the only way to have a FPS camera is to use
pointerlock. So you can use grab to have FPS camera on emscripten.

also show_mouse is implement in javascript as in a pull request that
hasn't been merged emscripten-core/emscripten#4616
@cactorium
Copy link
Owner

Thanks for the pull request/fixing a lot of stuff!

@cactorium cactorium merged commit 4cb2ea0 into cactorium:master Mar 21, 2017
cactorium pushed a commit that referenced this pull request May 10, 2017
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

Successfully merging this pull request may close these issues.

2 participants