diff --git a/src/gui.cpp b/src/gui.cpp index 3d824562..c1fa556a 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -36,8 +36,9 @@ void mouseButtonCallback(GLFWwindow *window, int button, int action, int mods) { #ifdef ARCH_MAC // Ctrl-left click --> right click if (button == GLFW_MOUSE_BUTTON_LEFT) { - if (guiIsKeyPressed(GLFW_KEY_LEFT_CONTROL) || guiIsKeyPressed(GLFW_KEY_RIGHT_CONTROL)) + if (glfwGetKey(gWindow, GLFW_KEY_LEFT_CONTROL) == GLFW_PRESS || glfwGetKey(gWindow, GLFW_KEY_RIGHT_CONTROL) == GLFW_PRESS) { button = GLFW_MOUSE_BUTTON_RIGHT; + } } #endif