I tried to use the code on MSDN to create Rawinput but i kept getting this error: RAWINPUTDEVICE was not declared in this scope.
I am writing in c++ and direct x and i am using Code Blocks
void RawInput(void)
{
RAWINPUTDEVICE Rid[2];
//keyboard
Rid[0] .usUsagePage = 1;
Rid[0] .usUsage = 6;
Rid[0] .dwFlags = 0;
Rid[0] .hwndTarget = NULL;
//mouse
Rid[1] .usUsagePage = 1;
Rid[1] .usUsage = 2;
Rid[1] .dwFlags = 0;
Rid[1] .hwndTarget = NULL;
}
i am writing this in a function is this wrong?
anyway i really need your help thanks!