mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-08-13 17:03:47 -04:00
command on mac
This commit is contained in:
parent
5ce2ecd6c8
commit
21142bdb26
@ -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")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user