File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -404,8 +404,8 @@ export fn update() void {
404
404
405
405
## Mouse
406
406
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 ` .
409
409
410
410
On the example below, we can make a rectangle follow the mouse position and expand when clicked:
411
411
Original file line number Diff line number Diff line change @@ -82,11 +82,11 @@ Example:
82
82
83
83
### MOUSE_X
84
84
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.
86
86
87
87
### MOUSE_Y
88
88
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.
90
90
91
91
### MOUSE_BUTTONS
92
92
You can’t perform that action at this time.
0 commit comments