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. }