Question about mouse input

Started by
0 comments, last by Mr Teatime 20 years, 7 months ago
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.
Advertisement
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.
TechleadEnilno, the Ultima 2 projectwww.dr-code.org/enilno

This topic is closed to new replies.

Advertisement