Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

dlGetMousePos always returns 0.0,0.0

Using GLFW
2014-07-18
2014-07-18
  • BonsaiScott
    BonsaiScott
    2014-07-18

    <edit>Sorry, dlGetMousePos is a wrapper

    double x, y;
    glfwGetCursorPos(window, &x, &y);
    printf("(%f,%f)\n", (float)x, (float)y);

    3 displays all off the same GPU
    App running full-screen on display 0 (although I've tried the others)
    However, the mouse cursor is always the spinning wait icon for the entire time the app is running

    I think there's something fundamental that I'm doing wrong. Any suggestions?

     
    Last edit: BonsaiScott 2014-07-18
  • BonsaiScott
    BonsaiScott
    2014-07-18

    Read that already.
    glfwPollEvents() gets called from the main thread every 100 ms.
    glfwSwapBuffers() gets called periodically

    I've registered a mouse button call-back, I click the mouse button in the full-screen display but it never gets called

    I've registered a key call-back, I type on the kb when the full-screen display has focus but it never gets called

    For some reason the full-screen window is always 'busy' (aforementioned spinning 'busy' mouse cursor). I think this is the source of my issues, but I don't know how to solve that.