You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Updated tutorial_canvas_transforms (markdown)
@@ -50,7 +50,7 @@ It is often desired to feed custom input events to the scene tree. With the abov
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
|
|
||||||
var local_pos = Vector2(10,20) # anything local
|
var local_pos = Vector2(10,20) # local to Control/Node2D
|
||||||
var ie = InputEvent()
|
var ie = InputEvent()
|
||||||
ie.type=InputEvent.MOUSE_BUTTON
|
ie.type=InputEvent.MOUSE_BUTTON
|
||||||
ie.button_index=1 # left click
|
ie.button_index=1 # left click
|
||||||
|
|||||||
Reference in New Issue
Block a user