mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-23 03:32:32 +00:00
Adds support for receiving dragged and dropped files under SDL.
This commit is contained in:
parent
6f8d4d6c5c
commit
90af395df2
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user