Question about mouse input
I have Direct Input fully initialised and Im using the DIMOUSESTATE structure to get the data from the mouse.
My question is, when you retrieve data from an axis, how can you differentiate between the axis directions eg. if I move the y-axis up or down.
Well, if you move the mouse to the right, mousestate.lx increases, and if you move it to the left, it decreases.
The same holds true for mousestate.ly.
The same holds true for mousestate.ly.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement