command on mac

This commit is contained in:
briaguya 2022-06-28 09:21:57 -04:00 committed by Kenix3
parent 5ce2ecd6c8
commit 21142bdb26

View File

@ -754,11 +754,19 @@ namespace SohImGui {
ShowCursor(menu_bar, Dialogues::dMenubar); ShowCursor(menu_bar, Dialogues::dMenubar);
} }
if ((ImGui::IsKeyDown(ImGuiKey_LeftCtrl) || #if __APPLE__
ImGui::IsKeyDown(ImGuiKey_RightCtrl)) && if ((ImGui::IsKeyDown(ImGuiKey_LeftSuper) ||
ImGui::IsKeyPressed(ImGuiKey_R, false)) { ImGui::IsKeyDown(ImGuiKey_RightSuper)) &&
ImGui::IsKeyPressed(ImGuiKey_R, false)) {
console->Commands["reset"].handler(noArgs); console->Commands["reset"].handler(noArgs);
} }
#else
if ((ImGui::IsKeyDown(ImGuiKey_LeftCtrl) ||
ImGui::IsKeyDown(ImGuiKey_RightCtrl)) &&
ImGui::IsKeyPressed(ImGuiKey_R, false)) {
console->Commands["reset"].handler(noArgs);
}
#endif
if (ImGui::BeginMenuBar()) { if (ImGui::BeginMenuBar()) {
if (DefaultAssets.contains("Game_Icon")) { if (DefaultAssets.contains("Game_Icon")) {