RegisterRawInput
RegisterRawInput is a function in the Windows API that allows an application to receive raw input from devices such as keyboards, mice, and joysticks. Instead of processing input through standard Windows messages, raw input bypasses these intermediaries and provides the application with direct access to hardware events. This is particularly useful for games and other applications that require precise control over input or need to handle multiple input devices simultaneously.
To use RegisterRawInput, an application first creates a RAWINPUTDEVICE structure that specifies the type of device