hal/drivers/hid/keyboard_win.cc
/**
 * @brief Shut down keyboard device.
 */
@brief Shut down keyboard device.
@brief Shut down keyboard device .
Keyboard::~Keyboard() noexcept {
  if (!error_code()) {
     See
     https:docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-registerrawinputdevices#remarks
    [[maybe_unused]] const auto rc = RegisterRawInputDevices(
        CreateKeyboardDeviceDefinition(nullptr, RIDEV_REMOVE));
    G3DPCHECK_E(!rc, rc) << "Unable to unregister raw keyboard handler.";
  }
}
Keyboard :: ~ Keyboard ( ) noexcept { if ( ! error_code ( ) ) { [[ maybe_unused ]] const auto rc = RegisterRawInputDevices ( CreateKeyboardDeviceDefinition ( nullptr , RIDEV_REMOVE ) ) ; G3DPCHECK_E ( ! rc , rc ) << " " ; } }
@brief Shut down keyboard device.
@brief Shut down keyboard device .
// "If a RAWINPUTDEVICE structure has the RIDEV_REMOVE flag set and the // hwndTarget parameter is not set to NULL, then parameter validation will // fail." // // See // https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-registerrawinputdevices#remarks