Skip to main content
gamedev.net
🔒 Locked

mouse wheel

Started by aCeOfSpAdEs Jul 18, 2003 at 1:23 PM 2 replies 950+ views
Original Post
aCeOfSpAdEs
aCeOfSpAdEs
does anyone know how I can read input from the wheel on my mouse? I have no problem with the buttons, but can''t find anything on the wheel. thanks ----------------------------------------- when all else fails... crack open a cold one.
-----------------------------------------when all else fails...crack open a cold one.
Buster
Buster
z-axis
aCeOfSpAdEs
aCeOfSpAdEs
ahhhh. i see.

thanks


-----------------------------------------

when all else fails...
crack open a cold one.
-----------------------------------------when all else fails...crack open a cold one.
Namethatnobodyelsetook
Namethatnobodyelsetook
When using the wheel and DInput, the delta per wheel turn is completely driver/vendor defined. There is no way to query what resolution it is, as far as I was able to tell.

What I do is memorize the smallest change I''ve seen and divide by that. For example, on my machine moving the wheel one click reports a delta of 64 or -64. I memorize "64". Now if someone changes by two clicks (128 or -128) that get converted to 2 or -2.

It''s a dirty hack in a way, but it''s a quick self calibration that does work.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.