Skip to content

Commit

Permalink
Right click on desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
Zikoat committed Aug 3, 2024
1 parent 91175b1 commit 9b3fe44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ export class Controls {
// todo we can simplify position calculations massively by rendering all of the closed cells and adding interactivity to them, then add some metadata to each sprite which coordinate it represents.
Controls.open();
})
.on("mouseup", (e: MouseEvent) => {
if (e.button === 2) Controls.flag();
})
.on("mousemove", (event: PointerEvent & ScreenPos) => {
assert(typeof event.x === "number");
assert(typeof event.y === "number");
Expand Down

0 comments on commit 9b3fe44

Please sign in to comment.