Skip to content

Commit

Permalink
Fix controls and public url (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperAuguste authored Apr 10, 2024
1 parent f4ce5eb commit 216457b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion simulator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"scripts": {
"lint": "eslint src --fix",
"dev": "parcel index.html",
"build": "parcel build index.html --no-optimize"
"build": "parcel build index.html --no-optimize --public-url ./"
},
"dependencies": {
"lit": "^2.2.0"
Expand Down
6 changes: 6 additions & 0 deletions simulator/src/ui/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@ export class App extends LitElement {
case "Enter":
mask |= constants.CONTROLS_SELECT;
break;
case "KeyQ":
mask |= constants.CONTROLS_A;
break;
case "KeyE":
mask |= constants.CONTROLS_B;
break;
case "ShiftLeft": case "ShiftRight":
mask |= constants.CONTROLS_CLICK;
break;
Expand Down

0 comments on commit 216457b

Please sign in to comment.