godot3 mouse position

in #godot38 years ago
func _input(e):
    if (e is InputEventMouseButton
    and e.button_index == BUTTON_LEFT and not e.pressed):
        print("Mouse Click/Unclick at: ", e.position, 'g: ',get_viewport().get_mouse_position())

Coin Marketplace

STEEM 0.12
TRX 0.34
JST 0.033
BTC 123609.31
ETH 4527.79
SBD 0.77