You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Added a new MIDIDriver class
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#include "dir_access.h"
|
||||
#include "input.h"
|
||||
#include "os/file_access.h"
|
||||
#include "os/midi_driver.h"
|
||||
#include "project_settings.h"
|
||||
#include "servers/audio_server.h"
|
||||
#include "version_generated.gen.h"
|
||||
@@ -672,6 +673,15 @@ List<String> OS::get_restart_on_exit_arguments() const {
|
||||
return restart_commandline;
|
||||
}
|
||||
|
||||
PoolStringArray OS::get_connected_midi_inputs() {
|
||||
|
||||
if (MIDIDriver::get_singleton())
|
||||
return MIDIDriver::get_singleton()->get_connected_inputs();
|
||||
|
||||
PoolStringArray list;
|
||||
return list;
|
||||
}
|
||||
|
||||
OS::OS() {
|
||||
void *volatile stack_bottom;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user