opengl + directInput + coordinate system??

Started by
1 comment, last by wazoo69 23 years, 6 months ago
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
Learn about game programming!Games Programming in C++: Start to Finish
Advertisement
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
Thanks ZedZeek, I''ll give it a shot then...I guess I just needed some kind of confirmation..

Wazoo
Learn about game programming!Games Programming in C++: Start to Finish

This topic is closed to new replies.

Advertisement