From 323234edc4fd953f329468054cb6a624f9bb6b65 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 13 Sep 2017 00:03:29 -0400 Subject: [PATCH] Removed guiIsKeyPressed on Mac --- src/gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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