Advertisement

Mouse in DI

Started by May 13, 2001 02:14 AM
0 comments, last by Thalion 23 years, 9 months ago
I have problems getting the mouse work in my game. I have set everything up and I get no compiling errors but when I start the program it shuts down immediatly. The problem must be this line: lpdi_mouse->GetDeviceState(sizeof(DIMOUSESTATE), (LPVOID)&mouse_state); I use LPDIRECTINPUT8 lpdi; and LPDIRECTINPUTDEVICE8 lpdi_mouse; and I think the problem might be that the code above is not DirectX8 because my book is older. Could somebody help me with how the mouse is set up and how to get the input from it in DirectInput8?
Ok, I got it to work. But the mouse-movement is very un-smoth, what can be done?

This topic is closed to new replies.

Advertisement