mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-12 08:11:10 +02:00
28 lines
632 B
C
28 lines
632 B
C
#pragma once
|
|
|
|
#include <windows.h>
|
|
#include <dinput.h>
|
|
|
|
#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); |