Updated page on COMPAQ DOS 1.11
This commit is contained in:
parent
74617db812
commit
8d5c618b78
2 changed files with 34 additions and 34 deletions
|
|
@ -2955,28 +2955,7 @@ class Video extends Component {
|
|||
* At this point, xThird and yThird should both be one of 0, 1 or 2, indicating which horizontal and
|
||||
* vertical third of the virtual screen the touch event occurred.
|
||||
*/
|
||||
if (/* xThird == 1 && */ yThird != 1) {
|
||||
if (!yThird) {
|
||||
this.kbd.addActiveKey(Keyboard.CLICKCODES.UP, true);
|
||||
} else {
|
||||
this.kbd.addActiveKey(Keyboard.CLICKCODES.DOWN, true);
|
||||
}
|
||||
} else if (/* yThird == 1 && */ xThird != 1) {
|
||||
if (!xThird) {
|
||||
this.kbd.addActiveKey(Keyboard.CLICKCODES.LEFT, true);
|
||||
} else {
|
||||
this.kbd.addActiveKey(Keyboard.CLICKCODES.RIGHT, true);
|
||||
}
|
||||
}
|
||||
else {
|
||||
/*
|
||||
* Why simulate a SPACE if the tap is in the middle third of the screen? Well, apparently I
|
||||
* didn't explain earlier that the WHOLE reason I originally added KEYGRID support (before it was
|
||||
* even called KEYGRID support) was to make the 1985 game "Rogue" (pcjs.org/apps/pcx86/1985/rogue)
|
||||
* more fun to play on an iPad, because arrows and spaces are the most commonly used keys.
|
||||
*/
|
||||
this.kbd.addActiveKey(Keyboard.SIMCODE.SPACE, true);
|
||||
}
|
||||
this.kbd.addActiveKey(Video.KEYGRID[yThird][xThird], true);
|
||||
}
|
||||
} else {
|
||||
|
||||
|
|
@ -7345,6 +7324,18 @@ Video.TOUCH = {
|
|||
MOUSE: 2
|
||||
};
|
||||
|
||||
/*
|
||||
* Why simulate a SPACE if the tap is in the middle third (center) of the screen? Well, apparently
|
||||
* I didn't explain earlier that the WHOLE reason I originally added KEYGRID support (before it was
|
||||
* even called KEYGRID support) was to make the 1985 game "Rogue" (pcjs.org/apps/pcx86/1985/rogue)
|
||||
* more fun to play on an iPad, and space is a commonly required key.
|
||||
*/
|
||||
Video.KEYGRID = [
|
||||
[Keyboard.SIMCODE.HOME, Keyboard.SIMCODE.UP, Keyboard.SIMCODE.PGUP],
|
||||
[Keyboard.SIMCODE.LEFT, Keyboard.SIMCODE.SPACE, Keyboard.SIMCODE.RIGHT],
|
||||
[Keyboard.SIMCODE.END, Keyboard.SIMCODE.DOWN, Keyboard.SIMCODE.PGDN],
|
||||
];
|
||||
|
||||
/*
|
||||
* Port input/output notification tables
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue