mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
Added a new MIDIDriver class
This commit is contained in:
parent
cfcb6e11f2
commit
7a5f9fc08e
28 changed files with 1029 additions and 4 deletions
|
@ -89,6 +89,7 @@ VARIANT_ENUM_CAST(KeyList);
|
|||
VARIANT_ENUM_CAST(KeyModifierMask);
|
||||
VARIANT_ENUM_CAST(ButtonList);
|
||||
VARIANT_ENUM_CAST(JoystickList);
|
||||
VARIANT_ENUM_CAST(MidiMessageList);
|
||||
|
||||
void register_global_constants() {
|
||||
|
||||
|
@ -458,6 +459,15 @@ void register_global_constants() {
|
|||
BIND_GLOBAL_ENUM_CONSTANT(JOY_ANALOG_L2);
|
||||
BIND_GLOBAL_ENUM_CONSTANT(JOY_ANALOG_R2);
|
||||
|
||||
// midi
|
||||
BIND_GLOBAL_ENUM_CONSTANT(MIDI_MESSAGE_NOTE_OFF);
|
||||
BIND_GLOBAL_ENUM_CONSTANT(MIDI_MESSAGE_NOTE_ON);
|
||||
BIND_GLOBAL_ENUM_CONSTANT(MIDI_MESSAGE_AFTERTOUCH);
|
||||
BIND_GLOBAL_ENUM_CONSTANT(MIDI_MESSAGE_CONTROL_CHANGE);
|
||||
BIND_GLOBAL_ENUM_CONSTANT(MIDI_MESSAGE_PROGRAM_CHANGE);
|
||||
BIND_GLOBAL_ENUM_CONSTANT(MIDI_MESSAGE_CHANNEL_PRESSURE);
|
||||
BIND_GLOBAL_ENUM_CONSTANT(MIDI_MESSAGE_PITCH_BEND);
|
||||
|
||||
// error list
|
||||
|
||||
BIND_GLOBAL_ENUM_CONSTANT(OK);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue