Fixed CAPSLOCK handling and tidied up some more things in keyboard.js
This commit is contained in:
parent
66a6f17b16
commit
41bf3e700c
8 changed files with 428 additions and 376 deletions
|
|
@ -2210,15 +2210,15 @@ Video.prototype.processTouchEvent = function(event, fStart)
|
|||
*/
|
||||
if (/* xThird == 1 && */ yThird != 1) {
|
||||
if (!yThird) {
|
||||
this.kbd.keyPressSimulate(Keyboard.KEYCODE.UP, true);
|
||||
this.kbd.keySimulatePress(Keyboard.KEYCODE.UP, true);
|
||||
} else {
|
||||
this.kbd.keyPressSimulate(Keyboard.KEYCODE.DOWN, true);
|
||||
this.kbd.keySimulatePress(Keyboard.KEYCODE.DOWN, true);
|
||||
}
|
||||
} else if (/* yThird == 1 && */ xThird != 1) {
|
||||
if (!xThird) {
|
||||
this.kbd.keyPressSimulate(Keyboard.KEYCODE.LEFT, true);
|
||||
this.kbd.keySimulatePress(Keyboard.KEYCODE.LEFT, true);
|
||||
} else {
|
||||
this.kbd.keyPressSimulate(Keyboard.KEYCODE.RIGHT, true);
|
||||
this.kbd.keySimulatePress(Keyboard.KEYCODE.RIGHT, true);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue