Skip to content

Commit

Permalink
feat: improve controls on samsung
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoDornelles committed Nov 28, 2024
1 parent a6b9767 commit 05631da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/engine/core/html5/driver-wasmoon.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -69,6 +75,7 @@ gly.wasmoon = async (game_file) => {
['ArrowDown', 'down'],
['ArrowLeft', 'left'],
['ArrowRight', 'right'],
['ShiftLeft', 'menu'],
];

function updateSize() {
Expand Down

0 comments on commit 05631da

Please sign in to comment.