fix JS Emulator controls while Capslock enabled
@@ -4,12 +4,12 @@ const JS_KEY_CTRL = 17;
const DEADZONE = 0.1;
var defaultKeys = {
- up: ["ArrowUp", "w"],
- down: ["ArrowDown", "s"],
- left: ["ArrowLeft", "a"],
- right: ["ArrowRight", "d"],
- a: ["Alt", "z", "j"],
- b: ["Control", "k", "x"],
+ up: ["ArrowUp", "w", "W"],
+ down: ["ArrowDown", "s", "S"],
+ left: ["ArrowLeft", "a", "A"],
+ right: ["ArrowRight", "d", "D"],
+ a: ["Alt", "z", "j", "Z", "J"],
+ b: ["Control", "k", "x", "K", "X"],
start: ["Enter"],
select: ["Shift"]
};
