Browse Source

Removed guiIsKeyPressed on Mac

tags/v0.3.1
Andrew Belt 7 years ago
parent
commit
323234edc4
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/gui.cpp

+ 2
- 1
src/gui.cpp View File

@@ -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



Loading…
Cancel
Save