Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

Full Screen and Pointer Locking Support

Compare
Choose a tag to compare
@jeffpar jeffpar released this 03 Feb 00:01
· 4210 commits to master since this release

Machine configurations can now include controls that enable Full Screen and Pointer Locking modes.

Machines can also specify auto-locking, so that when you click on the machine's display, the mouse pointer is automatically locked. Both of these modes are cancelled with Esc key, so for convenience, PCjs temporarily remaps your keyboard's Backquote key to the machine's Esc key, so that you have a way of typing that key without canceling the mode.

Not all browsers support these modes. Chrome is probably your best choice. Firefox is a good second choice, only because its JavaScript performance tends to be much slower than Chrome's. Firefox may be focusing too much on asm.js performance and not enough on conventional JavaScript.

Safari doesn't support Pointer Locking mode, but it does support Full Screen mode. Unfortunately, Safari has deliberately crippled Full Screen mode by disabling all alphanumeric keyboard input for "security reasons." Whatever Apple's security concerns are, Chrome and Firefox don't share them. This is unfortunate, because Safari's JavaScript performance is otherwise excellent -- on par with Chrome.


This release also includes a smattering of performance improvements, as well as groundwork for future control panels and processors -- specifically, the 80386; however, full support for that processor is still a long way off.