Mouse in DI
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?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement