1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-23 20:29:42 +00:00

Adds support for receiving dragged and dropped files under SDL.

This commit is contained in:
Thomas Harte 2017-11-19 18:05:31 -05:00
parent 6f8d4d6c5c
commit 90af395df2

View File

@ -339,6 +339,11 @@ int main(int argc, char *argv[]) {
}
break;
case SDL_DROPFILE: {
StaticAnalyser::Media media = StaticAnalyser::GetMedia(event.drop.file);
machine->configuration_target()->insert_media(media);
} break;
case SDL_KEYDOWN:
case SDL_KEYUP: {
KeyboardMachine::Machine *keyboard_machine = machine->keyboard_machine();