opengl + directInput + coordinate system??
Okay don''t sigh and groan, I already know that you can mix DirectInput with OpenGL
My question is how to use the mouse capabilities in DirectInput to move objects in your OpenGL coordinate system...
Now I''ve read the Nehe tutorial on DirectInput, but he only uses the keyboard, and makes a system call to the mouse (instead of using DirectInput for both)..
All I want to do is to use the mouse to move my object within
my opengl coordinate system..and I know that DirectInput returns
the delta since the last position of the mouse (right?)
I know I''ve already worded this question very weird, (Superfly weird), but I wanted to find out if anyone has any tips on doing this...ie. how to translate between the screen coordinate system and the world coordinate system (if needed)..
Now I *could* use the Nehe way of making a mouse system call, but then how do I check if the point lies within the boundaries of my opengl coordinate system.....
I''m just a tad confused...
thanks,
Wazoo
theres no differenece at all
getting the cursors position with directinput or with the api will return the same value
http://members.xoom.com/myBollux
getting the cursors position with directinput or with the api will return the same value
http://members.xoom.com/myBollux
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement