//
// sub_1800D6E60 from 0x1800d6e60 to 0x1800d6eef (143 bytes)
//
// 2 xrefs:
// > sub_1800D5870 @ 0x1800d5a5c
// > ??> @ 0x1801ba998
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall sub_1800D6E60(__int64 a1, int a2)
{
RAWINPUTDEVICE pRawInputDevices; // [rsp+20h] [rbp-18h] BYREF
if ( qword_1801ABFE8 == a1 )
{
if ( a2 )
{
pRawInputDevices.hwndTarget = *(HWND *)(a1 + 880);
*(_QWORD *)&pRawInputDevices.usUsagePage = 131073;
if ( !RegisterRawInputDevices(&pRawInputDevices, 1u, 0x10u) )
sub_1800D9BA0(65544, "Win32: Failed to register raw input device");
}
else
{
*(_DWORD *)&pRawInputDevices.usUsagePage = 131073;
pRawInputDevices.dwFlags = 1;
pRawInputDevices.hwndTarget = nullptr;
if ( !RegisterRawInputDevices(&pRawInputDevices, 1u, 0x10u) )
sub_1800D9BA0(65544, "Win32: Failed to remove raw input device");
}
}
}