#pragma once #include "app.hpp" #include #include namespace rack { extern GLFWwindow *gWindow; extern NVGcontext *gVg; extern std::shared_ptr gGuiFont; extern float gPixelRatio; void guiInit(); void guiDestroy(); void guiRun(); void guiCursorLock(); void guiCursorUnlock(); inline bool guiIsModPressed() { #ifdef ARCH_MAC return glfwGetKey(gWindow, GLFW_KEY_LEFT_SUPER) == GLFW_PRESS || glfwGetKey(gWindow, GLFW_KEY_RIGHT_SUPER) == GLFW_PRESS; #else return glfwGetKey(gWindow, GLFW_KEY_LEFT_CONTROL) == GLFW_PRESS || glfwGetKey(gWindow, GLFW_KEY_RIGHT_CONTROL) == GLFW_PRESS; #endif } } // namespace rack