-
WM_INPUT and raw input
I got this piece of code, but it keeps giving me: RAWINPUTDEVICE not declared, while msdn says its declared in winuser.h, I included that, and it still doesnt work.Why?
Code:
RAWINPUTDEVICE Rid[2];
Rid[0].usUsagePage = 01h;
Rid[0].usUsage = 05h;
Rid[0].dwFlags = 0; // adds game pad
if (RegisterRawInputDevices(Rid, 2, sizeof(Rid[0])) == FALSE) {
//registration failed. Call GetLastError for the cause of the error.
}
-
Do you have the latest Platform SDK?
-
I have, do i need to set it in dev-C++?
EDIT:
I have included the library's, the bins and the includes, but it gives me alot of errors all over the code.Also in the .h files there are many errors.
-