v1.16.3: Keyboard module rewrite

There are still a few regressions to address, but keyCode-to-simCode-to-scanCode conversion feels more robust/cleaner, and new features like programmable repeat rates will actually be doable now
This commit is contained in:
Jeff Parsons 2014-12-09 16:34:46 -08:00 • committed by jeffpar
commit 88cc526c32
146 changed files with 8127 additions and 1880 deletions

View file

@ -2305,15 +2305,15 @@ Video.prototype.processTouchEvent = function(event, fStart)
*/
if (/* xThird == 1 && */ yThird != 1) {
if (!yThird) {
this.kbd.keySimulatePress(Keyboard.aButtonCodes.up, true);
this.kbd.addActiveKey(Keyboard.CLICKCODES.UP, true);
} else {
this.kbd.keySimulatePress(Keyboard.aButtonCodes.down, true);
this.kbd.addActiveKey(Keyboard.CLICKCODES.DOWN, true);
}
} else if (/* yThird == 1 && */ xThird != 1) {
if (!xThird) {
this.kbd.keySimulatePress(Keyboard.aButtonCodes.left, true);
this.kbd.addActiveKey(Keyboard.CLICKCODES.LEFT, true);
} else {
this.kbd.keySimulatePress(Keyboard.aButtonCodes.right, true);
this.kbd.addActiveKey(Keyboard.CLICKCODES.RIGHT, true);
}
}
};