🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

HELP!!!!! Whats Wrong with DirectInput

Started by
0 comments, last by C++ Freak 24 years, 5 months ago
I am using the BOB game engine and I an making a shooting gallarey. I used this code to get the position of the mouse. DI_Read_Mouse(); // move the mouse cursor mouse_x+=(mouse_state.lX); mouse_y+=(mouse_state.lY); but when I tried to fire the gun in the program it kept on missing its targets. So then I made a BOB that would follow the mouse around. cursor.x=mouse_x; cursor.y=mouse_y; and when I executed the program I was surprised to see that the faster I moved the mouse the farther behind the BOB was. How do I fix this? I am using directX5.
Visit http://members.xoom.com/ivanickgames
Advertisement
Never mind. I fixed it.


Edited by - C++ Freak on 1/14/00 10:56:51 AM
Visit http://members.xoom.com/ivanickgames

This topic is closed to new replies.

Advertisement