Browse Source

add controller_number & controller_value to allow printing of all MIDI event data

alcomposer 2 years ago
parent
commit
73db3b67df
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/input/input_event.cpp

+ 1 - 1
core/input/input_event.cpp

@@ -1562,7 +1562,7 @@ String InputEventMIDI::as_text() const {
 }
 }
 
 
 String InputEventMIDI::to_string() {
 String InputEventMIDI::to_string() {
-	return vformat("InputEventMIDI: channel=%d, message=%d, pitch=%d, velocity=%d, pressure=%d", channel, message, pitch, velocity, pressure);
+	return vformat("InputEventMIDI: channel=%d, message=%d, pitch=%d, velocity=%d, pressure=%d, controller_number=%d, controller_value=%d", channel, message, pitch, velocity, pressure, controller_number, controller_value);
 }
 }
 
 
 void InputEventMIDI::_bind_methods() {
 void InputEventMIDI::_bind_methods() {