#pragma once #include #include #ifndef DIRECTINPUT_VERSION #define DIRECTINPUT_VERSION 0x0800 #endif // Call this instead of DirectInput8Create. HRESULT WINAPI IceDirectInput8Create( HINSTANCE hinst, DWORD dwVersion, REFIID riidltf, LPVOID* ppvOut, LPUNKNOWN punkOuter ); // Call from your main window proc on WM_INPUT. bool IceDirectInputShim_HandleRawInput(LPARAM lParam); // Optional: call when your hwnd changes/recreates. bool IceDirectInputShim_RegisterRawInput(HWND hwnd); // Optional shutdown helper. void IceDirectInputShim_Shutdown(); void IceDI_ForceOverrideSkipCenter(bool shouldSkip);