...
This commit is contained in:
parent
47045d1a6c
commit
c0021b5240
1 changed files with 14 additions and 0 deletions
14
MyObsidianVault/Knowledgebase/Godot/InputEvent Handling.md
Normal file
14
MyObsidianVault/Knowledgebase/Godot/InputEvent Handling.md
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
```python
|
||||
extends TileMapLayer
|
||||
|
||||
signal hex_clicked(cell_pos:Vector2, atlas_coords:Vector2)
|
||||
|
||||
func _ready():
|
||||
print("TileMapLayer is alive")
|
||||
|
||||
func _input(event: InputEvent):
|
||||
#print("Unhandled input")
|
||||
if event is InputEventMouseButton:
|
||||
if event.pressed==false: return
|
||||
```
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue