Compare commits
3 Commits
c59c111625
...
b18f41ff1c
Author | SHA1 | Date |
---|---|---|
Will Scullin | b18f41ff1c | |
Gabriel Sroka | 6fba3131f0 | |
Gabriel Sroka | 669f9298e4 |
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
## What is this?
|
## What is this?
|
||||||
|
|
||||||
An Apple 1 emulator written in Javascript and HTML5
|
An Apple 1 emulator written in JavaScript and HTML5. Press F1 (or maybe Shift+F1) to Reset, F2 to enter fullscreen mode.
|
||||||
|
|
||||||
Things are still a little rough around the edges right now, hopefully I will have more time to clean things up.
|
Things are still a little rough around the edges right now, hopefully I will have more time to clean things up.
|
||||||
|
|
||||||
|
|
|
@ -272,9 +272,10 @@ declare global {
|
||||||
|
|
||||||
let _key: byte;
|
let _key: byte;
|
||||||
function _keydown(evt: KeyboardEvent) {
|
function _keydown(evt: KeyboardEvent) {
|
||||||
if (evt.keyCode === 112) {
|
const F1 = 112, F2 = 113;
|
||||||
|
if (evt.keyCode === F1) {
|
||||||
cpu.reset();
|
cpu.reset();
|
||||||
} else if (evt.keyCode === 113) {
|
} else if (evt.keyCode === F2) {
|
||||||
if (document.webkitIsFullScreen) {
|
if (document.webkitIsFullScreen) {
|
||||||
document.webkitCancelFullScreen();
|
document.webkitCancelFullScreen();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue