Skip to content

Commit

Permalink
fix: button misread
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-jerry-ye committed Nov 9, 2024
1 parent ffc6ed7 commit 0ce83de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions memory.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ pub fn get_mouse() -> Mouse {
x: load_s16(address_MOUSE_X),
y: load_s16(address_MOUSE_Y),
left: (buttons & 1U) == 1U,
middle: (buttons & 2U) == 2U,
right: (buttons & 4U) == 4U,
right: (buttons & 2U) == 2U,
middle: (buttons & 4U) == 4U,
}
}

Expand Down
2 changes: 1 addition & 1 deletion moon.mod.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moonbitlang/wasm4",
"version": "0.2.2",
"version": "0.2.3",
"readme": "README.md",
"repository": "https://github.com/moonbitlang/wasm4",
"license": "Apache-2.0",
Expand Down

0 comments on commit 0ce83de

Please sign in to comment.