press button with midi controleur
hi sorry for my newbie question but i have search many time before my post...
i understand the method to get midi message and for many node it's work perfectly.
but for press button it's not work and i haven't error message
my test :
func _unhandled_input(event : InputEvent): if (event is InputEventMIDI): var key_index = event.pitch print(key_index) if key_index == 30: match event.message: MIDI_MESSAGE_NOTE_ON: get_node("pad1").set_pressed(true)
i think the problem come from the last line but why...