From 05631da12b4ca8f900d53a8f122937bdf6733b33 Mon Sep 17 00:00:00 2001 From: RodrigoDornelles Date: Thu, 28 Nov 2024 14:49:31 -0300 Subject: [PATCH] feat: improve controls on samsung --- src/engine/core/html5/driver-wasmoon.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/engine/core/html5/driver-wasmoon.js b/src/engine/core/html5/driver-wasmoon.js index 6f10b82..9a52fb3 100644 --- a/src/engine/core/html5/driver-wasmoon.js +++ b/src/engine/core/html5/driver-wasmoon.js @@ -56,10 +56,16 @@ gly.wasmoon = async (game_file) => { } const keys = [ + [13, 'a'], + [38, 'up'], + [37, 'left'], + [40, 'down'], + [39, 'right'], [403, 'a'], [404, 'b'], [405, 'c'], [406, 'd'], + [10009, 'menu'], ['KeyZ', 'a'], ['KeyX', 'b'], ['KeyC', 'c'], @@ -69,6 +75,7 @@ gly.wasmoon = async (game_file) => { ['ArrowDown', 'down'], ['ArrowLeft', 'left'], ['ArrowRight', 'right'], + ['ShiftLeft', 'menu'], ]; function updateSize() {