-
Notifications
You must be signed in to change notification settings - Fork 1
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
this.game.interact.request() doesn't return control to game, have to click canvas (pointer lock limitation) -- change ESC to ` #1
Comments
From http://www.chromium.org/developers/design-documents/mouse-lock :
but:
"not due to the user pressing ESC".. sure enough I'm using escape (vkey 27) to close, but it already is used for exiting pointerlock. Changing to another key(!) allows the application to re-acquire pointer lock. Would prefer to use ESC but backquote or X are other possibilities. |
Changed all "close" keys from escape to `, including: voxel-modal (voxel-chest, voxel-workbench, voxel-console), voxel-inventory-dialog |
voxel/voxel-clientmc@32b4a1e Self-disable on WS error/end. Closes GH-2 voxel/voxel-clientmc@da0ff8c Send chat to server when entered in voxel-console voxel/voxel-clientmc@6a2145a Log incoming server chat to voxel-console voxel/voxel-clientmc@7300206 Echo position on server position update, but player still 'snaps back' voxel/voxel-clientmc@6c3f151 Use MC player height for stance calculation voxel/voxel-clientmc@7396bcd Send position updates 50 ms in game timer. Ref GH-3 voxel/voxel-clientmc@38a9b1a Revert "Try using tic to send player position updates every 50 ms" voxel/voxel-clientmc@c9f8223 Try using tic to send player position updates every 50 ms voxel/voxel-console@43474f2 Update console-widget voxel/voxel-console@d8939bf Don't use console-widget's hide/show functionality; defer to voxel-modal container element voxel/voxel-console@09d4605 Update to voxel-modal ~0.1.1 voxel/voxel-console@5f3a803 Update console-widget voxel/voxel-console@b96bbb8 Add logNode for formatted text output, remove default 'input' handler voxel/voxel-inventory-dialog@8ee891f Change close keys to ` and E, remove <escape>. See voxel/voxel-modal#1 Commit message generated by https://github.com/deathcap/lmno-cl
When modal elements are closed by clicking outside of them (onto the main game canvas area), pointer lock is acquired, as you would expect. Consequentially this is the most usable way to close modal elements.
However, if the modal is closed programmatically (close() from voxel-modal), such as from a keybinding, then pointer lock is not re-acquired. voxel-modal attempts to:
but according to https://npmjs.org/package/pointer-lock:
The text was updated successfully, but these errors were encountered: