Nucleus handler tools › Docs › Game.ProtoInput › DinputHookAlsoHooksGetDeviceState
Game.ProtoInput.DinputHookAlsoHooksGetDeviceState
Open in the workbench (search, and try it in a handler)
Game.ProtoInput.DinputHookAlsoHooksGetDeviceState: boolean
Some (few) games will use Direct Input instead of Xinput to get controller input. The Direct Input API involves creating an "interface" to receive input from a controller. Typically a game will create this interface at startup for the first or all controllers. This hook will redirect the interface to the GUID of the selected controller. Note that the controller GUID can only be set automatically through Nucleus (not at runtime).
If this method doesn't work, you can also try with DinputHookAlsoHooksGetDeviceState. This will additionally hook the GetDeviceState function, which is called whenever the game polls input. This method is highly un-recommended since there's no guarantee the game expects the data to be formatted in the same way that Proto Input does, which can lead to completely mesesed up input.
Category: Proto Input
Game.ProtoInput.DinputHookAlsoHooksGetDeviceState = false;