godot_osc_demo/ToggleButton.gd

10 lines
250 B
GDScript3
Raw Normal View History

extends Button
func recv_osc(val, msg_info):
print("Sender IP: %s" % msg_info["ip"])
print("Sender Port: %d" % msg_info["port"])
print("Adress: %s" % msg_info["address"])
print("Types: %s" % msg_info["types"])
set_pressed_no_signal(bool(val))