Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Guest Anonymous Poster

DirectInput problems with wheelmouse

This topic is 6933 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have never used the mouse wheel in direct x, but I had o write a program to capture and handle the events in VB. If I remember correctly after regestering the message with windows and adding a hook function to caputure it, all you ever got back was a load of rubbish except for one of the perameters whih contained the number of lines to move. I'm assuming that direct x will do the same, sut tell you that it has been moved, and somewhere have a single value that says how many lines to move.

Share this post


Link to post
Share on other sites
Advertisement
Hmmm... could be your mouse or mouse driver. Try it on a genuine Intellimouse; if you can't find one, send me the EXE and I'll test it for you on mine.

Mason McCuskey
Spin Studios
www.spin-studios.com

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I have a wheel-mouse and I'm having problems getting DirectInput to recognise it.

Standard mouse functions work fine, and clicking the wheel correctly registers as button #3, but the Z axis doesn't work. DI does detect the axis, but it is not read correctly- any mouse movement causes the Z axis to be filled with garbage values. Other than the wheel, it works fine.

The DirectInput examples with DX6 have exactly the same problem as my code- Z axis not usable, just garbage.

Using DX6, MSVC++ 5.0 and the mouse is a dexxa- uses a Logitech driver according to systems properties.

Anyone have any ideas?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I don't have access to my exe right now, but the SDK example has the same deal

mssdk-samples-multimedia-DInput-bin-mouseexc.exe

It reports 112 for any movement at all.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!