mirror of
https://github.com/godotengine/godot.git
synced 2025-02-16 15:50:45 +00:00
Updated tutorial_mouse_coords (markdown)
parent
d72a459354
commit
b84900c492
@ -41,4 +41,10 @@ func _input(ev):
|
|||||||
func _ready():
|
func _ready():
|
||||||
set_process_input(true)
|
set_process_input(true)
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
Alternatively it's possible to ask the viewport for the mouse position
|
||||||
|
|
||||||
|
```python
|
||||||
|
get_viewport().get_mouse_pos()
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user