Latest winapi Activity
I am developing Airlib, and now I need to create a window using WinAPI wihtout any main() or WinMain or anything like that in C (not cpp). So far whatever I find is in C++ or uses WinMain. I think SDL uses OpenGL, but I'd like to do without.
The way I register for raw input is
RAWINPUTDEVICE Rid[2];
// //rawinputdevice for mouse
Rid[0].usUsagePage = 0x01;
Rid[0].usUsage = 0x02;
Rid[0].dwFlags = RIDEV_NOLEGACY;
Rid[0].hwndTarget = 0;
//
// //rawinputdevice for keyboard
Rid[1].usUsagePage = 0x01;
Rid[1].usUsage…
@21st Century Moose This is the problem… I can't check the HRESULT from the Present() because the program stops WHILE making the Present (I checked this by putting the execution on Pause to see where the principal Thread stopped, and that's how I knew that it was the Present() that made all crash.)…
There are quite a few strings available. Perhaps you want HidD_GetPhysicalDescriptor()?
Advertisement
Advertisement