godot_osc_demo/ToggleButton.gd
Christopher Arndt 4f0bb2fa93 fix: string and blob parsing
feat: pass argument values to callback as array
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
2023-11-04 11:49:08 +01:00

10 lines
260 B
GDScript

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