Browse Source

Remove negative mouse dimension fix on Mac, doesn't work. Updated osdialog

tags/v0.3.0
Andrew Belt 7 years ago
parent
commit
ca9add800a
2 changed files with 1 additions and 7 deletions
  1. +1
    -1
      ext/osdialog
  2. +0
    -6
      src/gui.cpp

+ 1
- 1
ext/osdialog

@@ -1 +1 @@
Subproject commit 063ed8701e08bf1cb0619a9f08cb370df28becc6
Subproject commit d2141b5b8976e8adc2e3fda60fc012cf01e40c31

+ 0
- 6
src/gui.cpp View File

@@ -73,13 +73,7 @@ void mouseButtonCallback(GLFWwindow *window, int button, int action, int mods) {
}
}

static bool mouseLockedLast = false;

void cursorPosCallback(GLFWwindow* window, double xpos, double ypos) {
// GLFW on Mac sends the mouse into negative coordinates when the mouse is locked/unlocked for some reason.
if (xpos < 0.0 || ypos < 0.0)
return;

Vec mousePos = Vec(xpos, ypos).round();
Vec mouseRel = mousePos.minus(gMousePos);
gMousePos = mousePos;


Loading…
Cancel
Save