MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / EndFrame

Method EndFrame

external/ImGuiFileDialog/ImGuiFileDialog.cpp:2862–2891  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2860}
2861
2862void IGFD::FileDialogInternal::EndFrame() {
2863 // directory change
2864 if (fileManager.pathClicked) {
2865 fileManager.OpenCurrentPath(*this);
2866 }
2867
2868 if (fileManager.devicesClicked) {
2869 if (fileManager.GetDevices()) {
2870 fileManager.ApplyFilteringOnFileList(*this);
2871 }
2872 }
2873
2874 if (fileManager.inputPathActivated) {
2875 auto gio = ImGui::GetIO();
2876 if (ImGui::IsKeyReleased(ImGuiKey_Enter)) {
2877 fileManager.SetCurrentPath(std::string(fileManager.inputPathBuffer));
2878 fileManager.OpenCurrentPath(*this);
2879 fileManager.inputPathActivated = false;
2880 }
2881 if (ImGui::IsKeyReleased(ImGuiKey_Escape)) {
2882 fileManager.inputPathActivated = false;
2883 }
2884 }
2885
2886 if (ImGui::IsKeyDown(ImGuiMod_Ctrl)) {
2887 if (ImGui::IsKeyDown(SelectAllFilesKey)) {
2888 fileManager.SelectAllFileNames();
2889 }
2890 }
2891}
2892
2893void IGFD::FileDialogInternal::ResetForNewDialog() {
2894}

Callers 1

m_EndFrameMethod · 0.45

Calls 5

OpenCurrentPathMethod · 0.80
GetDevicesMethod · 0.80
SetCurrentPathMethod · 0.80
SelectAllFileNamesMethod · 0.80

Tested by

no test coverage detected