Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: mouse-wheel function return 'int wheel-position=0' only ..

  1. #1
    Intern Contributor
    Join Date
    Jul 2013
    Posts
    63

    mouse-wheel function return 'int wheel-position=0' only ..

    Hi All,

    I've had a couple of (OpenGL) projects running with a missing respons on the mouse-wheel. I accepted it in freeglut as the specs said that it 'might' work (it didn't). My present GLFW-project integrates the function-pointer ok .. the only snag is, that only a 'notch' is detected. The int wheel-position returned is always '0'. That leaves me without a detection on which way the wheel is rolling .. counting the 'notches' is no problem next to that.
    I'm using win7 64bit, a microsoft mouse and a HID-driver (auto-installed). I wouldn't mind getting another mouse, but I doubt that it would solve the problem.
    Any suggestions?

  2. #2
    Intern Contributor
    Join Date
    Jul 2013
    Posts
    63
    Can I assume that no one else has met the problem?

  3. #3
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,106
    If your mouse wheel is working in other apps it is not likely to be your hardware. If you are using freeglut try compiling the freeglut code with debug and check how it is trapping the mouse wheel event.

  4. #4
    Intern Contributor
    Join Date
    Jul 2013
    Posts
    63
    Hi Tonyo
    I think that it's because I've changed some settings of the mouse (faster speed, tail, more notches on scrolling). I noticed that other programs (game) will not work with a mouse where the 'tail' is on. It's such a minor problem compared to making GLEW and GLFW work. Inspite of the GLFW-hints, I cannot get a debug-Window-version, but the wheel-action is detected .. it's just 'wrong'. I've spent the day on making GLFW3 work instead .. I just saw on it's event-test that the error still persists.

  5. #5
    Intern Contributor
    Join Date
    Jul 2013
    Posts
    63
    Problem solved:
    Although I moved to glfw3, the function there expects return of 'double' and not 'int' .. so I got it working. ;o)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •