mouse 4th byte, H and V wheel
Posted: Wed Mar 02, 2011 7:27 am
when i read the wiki, and a lot of other sources, it appears that it is confusing about the H and V scroll wheel movment in the Z field of the 4th byte.
and the explanation is:
if Z = 0, then no movment
if Z = 1 then increment on V
if Z = F then decrement on V
if Z = 2 then increment on H
if Z = E then decrement on H
but, it is confusing, because other sources says:
if Z is incremented by 1, it means one click up on V axis
if Z is incremented by 2, it means one click up on H axis...
what about the values 3, 4, 5, 6, 7, 8, 9, A, B, C and D?
can the simple explanation be:
odd values are for V axis, and even values are for H axis??? because it looks more logical.
then, if the bit Z0 is set, it is a movment of the vertical wheel, and if Z0 is clear, it is a movment on H axis...
it seems really more logical like this, but i know that sometimes, computer design is everything but logical...
thanks.
Code: Select all
b field
0 Z0
1 Z1
2 Z2
3 Z3
4 4th button
5 5th button
6 0
7 0
if Z = 0, then no movment
if Z = 1 then increment on V
if Z = F then decrement on V
if Z = 2 then increment on H
if Z = E then decrement on H
but, it is confusing, because other sources says:
if Z is incremented by 1, it means one click up on V axis
if Z is incremented by 2, it means one click up on H axis...
what about the values 3, 4, 5, 6, 7, 8, 9, A, B, C and D?
can the simple explanation be:
odd values are for V axis, and even values are for H axis??? because it looks more logical.
then, if the bit Z0 is set, it is a movment of the vertical wheel, and if Z0 is clear, it is a movment on H axis...
it seems really more logical like this, but i know that sometimes, computer design is everything but logical...
thanks.