1
1
Fork 0
mirror of https://github.com/boxgaming/qbjs.git synced 2024-05-12 08:00:12 +00:00

fix for keyhit

This commit is contained in:
boxgaming 2022-03-15 14:12:27 -05:00
parent ada45e3506
commit 03466d5c32

3
qb.js
View file

@ -1555,6 +1555,7 @@ var QB = new function() {
if (!_inputMode) {
var kh = _getKeyHit(event);
if (kh) {
_keyHitBuffer.push(kh);
_keyDownMap[kh] = true;
}
}
@ -1568,7 +1569,7 @@ var QB = new function() {
_addInkeyPress(event);
var kh = _getKeyHit(event);
if (kh) {
_keyHitBuffer.push(kh);
_keyHitBuffer.push(kh * -1);
_keyDownMap[kh] = false;
}
}