You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I trying out miniquad to see if I could port the EventHandler::files_dropped_event to macroquad but it seems it won't work even in miniquad. By reading the codet the event seems to be correctly managed, so it should be possible to use it:
src/lib.rs
189pubfndropped_file_count() -> usize{190let d = native_display().lock().unwrap();191 d.dropped_files.bytes.len()192}193pubfndropped_file_bytes(index:usize) -> Option<Vec<u8>>{194let d = native_display().lock().unwrap();195 d.dropped_files.bytes.get(index).cloned()196}197pubfndropped_file_path(index:usize) -> Option<std::path::PathBuf>{198let d = native_display().lock().unwrap();199 d.dropped_files.paths.get(index).cloned()200}
Now, the important, when you try to drop something to a miniquad windows:
You can see the windows block cursor icon that appears when I drag a file from the explorer onto the windows. Even if miniquad functions are completed an able to work, the Windows itself won't allow it.
I wanted to contribute to help fix this as it's a feature important for my project. I've been reading miniquad codebase for a while but I don't get why this happens.
I'll continue reading the code and trying to make this work cross-platform. There are some similar issues so there might be more people affected by this, but those issues are old and doesn't explain if the function itself wasn't working or if it was the same problem exposed here.
The text was updated successfully, but these errors were encountered:
I found out this works on wasm, it seems to fail on Windows. Sadly I don't have a Linux machine to test, I'll install vmware player once I get this working on windows and check if it works on Linux
Edit: It works only on egui-miniquad, I used the same code on miniquad and it didn't work. Which is weird, I was using miniquad 0.4.0 and egui-miniquad was also using 0.4.0
I trying out miniquad to see if I could port the EventHandler::files_dropped_event to macroquad but it seems it won't work even in miniquad. By reading the codet the event seems to be correctly managed, so it should be possible to use it:
src/lib.rs
Now, the important, when you try to drop something to a miniquad windows:
You can see the windows block cursor icon that appears when I drag a file from the explorer onto the windows. Even if miniquad functions are completed an able to work, the Windows itself won't allow it.
I wanted to contribute to help fix this as it's a feature important for my project. I've been reading miniquad codebase for a while but I don't get why this happens.
I'll continue reading the code and trying to make this work cross-platform. There are some similar issues so there might be more people affected by this, but those issues are old and doesn't explain if the function itself wasn't working or if it was the same problem exposed here.
The text was updated successfully, but these errors were encountered: