ControllerInterface: Implement ChangeWindow on DInput without recreating the devices

Also polished DInput code in general to try and mitigate issue 11702.
Added a lot of logging and comments.
This commit is contained in:
Filoppi
2021-06-07 11:07:06 +03:00
parent dcc345400e
commit a0ecca1a84
8 changed files with 140 additions and 37 deletions
@@ -20,4 +20,6 @@ BOOL CALLBACK DIEnumDevicesCallback(LPCDIDEVICEINSTANCE lpddi, LPVOID pvRef);
std::string GetDeviceName(const LPDIRECTINPUTDEVICE8 device);
void PopulateDevices(HWND hwnd);
void ChangeWindow(HWND hwnd);
void DeInit();
} // namespace ciface::DInput