summaryrefslogtreecommitdiffstats
path: root/core/os/midi_driver.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <juan@godotengine.org>2020-03-01 19:14:37 -0300
committerJuan Linietsky <reduzio@gmail.com>2020-03-26 15:49:32 +0100
commit4396e98834f159da59ec790f2ff64fb65dacd9ce (patch)
treed618e96d7a7b856260fd96e5e727f38a26de0724 /core/os/midi_driver.cpp
parenta2da99f40cf2123c0906c734a2eb01e9b65a45a2 (diff)
downloadredot-engine-4396e98834f159da59ec790f2ff64fb65dacd9ce.tar.gz
Refactored Input, create DisplayServer and DisplayServerX11
Diffstat (limited to 'core/os/midi_driver.cpp')
-rw-r--r--core/os/midi_driver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/os/midi_driver.cpp b/core/os/midi_driver.cpp
index 6ebec50ff0..68c3bf3912 100644
--- a/core/os/midi_driver.cpp
+++ b/core/os/midi_driver.cpp
@@ -30,8 +30,8 @@
#include "midi_driver.h"
+#include "core/input/input.h"
#include "core/os/os.h"
-#include "main/input_default.h"
uint8_t MIDIDriver::last_received_message = 0x00;
MIDIDriver *MIDIDriver::singleton = NULL;
@@ -117,7 +117,7 @@ void MIDIDriver::receive_input_packet(uint64_t timestamp, uint8_t *data, uint32_
break;
}
- InputDefault *id = Object::cast_to<InputDefault>(Input::get_singleton());
+ Input *id = Input::get_singleton();
id->parse_input_event(event);
}