Skip to content

This is a DirectInput 8 (dinput8.dll) Wrapper, which internally uses Raw-Input instead of DirectInput

License

Notifications You must be signed in to change notification settings

geeky/dinput8wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dinput8wrapper

This is a DirectInput 8 (dinput8.dll) Wrapper, which internally uses Raw-Input instead of DirectInput.

Initially created to have a different way to fix the frame stuttering caused by regular EnumDevices()-calls in "Kane & Lynch: Dead Men" Other workarounds are listed here: https://www.pcgamingwiki.com/wiki/Kane_%26_Lynch:_Dead_Men#Stuttering

Whats the issue?

Dependending on the number and type of physical/virtual "USB HID"-devices on the system the EnumDevices()-call can take a few ms to return. Games sometimes call this function regularly in the main thread to check if a new gamepad is attached/detached, which will then cause regular frame stuttering due to the pauses caused by EnumDevices(). This wrapper returns a fixed keyboard-device and a fixed mouse-device in EnumDevices() and does not do any real device enumeration.

Current state:

  • Only supports Keyboard and Mouse (gamepad-support in progress)
  • Does only implement a small subset of the DirectInput8-Interfaces (may not work with all games using DirectInput8)
  • 32-bit only (Is there any DirectInput8-game that requires x64?)

How to use / Installation

Compile yourself

About

This is a DirectInput 8 (dinput8.dll) Wrapper, which internally uses Raw-Input instead of DirectInput

Resources

License

Stars

Watchers

Forks

Packages

No packages published