Skip to content

Commit df08e51

Browse files
committed
docs: Document mouse outside screen (solves #651)
1 parent ae53d65 commit df08e51

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

site/docs/guides/user-input.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,8 @@ export fn update() void {
404404

405405
## Mouse
406406

407-
Mouse (or touchscreen) input is supported. See the [Memory Map](/docs/reference/memory)
408-
reference for more details on `MOUSE_X`, `MOUSE_Y`, and `MOUSE_BUTTONS`.
407+
Mouse (or touchscreen) input is supported and will work for positions even outside of the game window on supported platforms.
408+
See the [Memory Map](/docs/reference/memory) reference for more details on `MOUSE_X`, `MOUSE_Y`, and `MOUSE_BUTTONS`.
409409

410410
On the example below, we can make a rectangle follow the mouse position and expand when clicked:
411411

site/docs/reference/memory.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ Example:
8282

8383
### MOUSE_X
8484

85-
Signed 16 bit integer containing the X position of the mouse.
85+
Signed 16 bit integer containing the X position of the mouse. Can contain positions outside of the game window.
8686

8787
### MOUSE_Y
8888

89-
Signed 16 bit integer containing the Y position of the mouse.
89+
Signed 16 bit integer containing the Y position of the mouse. Can contain positions outside of the game window.
9090

9191
### MOUSE_BUTTONS
9292

0 commit comments

Comments
 (0)