Nucleus handler tools › Docs › ProtoInput › SetDinputDeviceGUID

ProtoInput.SetDinputDeviceGUID

Open in the workbench (search, and try it in a handler)

ProtoInput.SetDinputDeviceGUID(
  instanceHandle: number,
  Data1: number,
  Data2: number,
  Data3: number,
  Data4a: number,
  Data4b: number,
  Data4c: number,
  Data4d: number,
  Data4e: number,
  Data4f: number,
  Data4g: number,
  Data4h: number
): void
ProtoInput.SetDinputDeviceGUID(
  instanceHandle: number,
  guid: any
): void

Chooses the DirectInput controller the DinputOrderHookID hook opens for every DirectInput device the game creates. Parameters: the instance handle and the controller's GUID (Nucleus passes player.GamepadGuid); a second form takes the GUID as 11 numbers (Data1, Data2, Data3, then the 8 bytes of Data4).

_✎ AI-written, based on Nucleus ProtoInput.cs (SetDinputDeviceGUID, both overloads), ProtoInputLoader Inject.cpp, ProtoInputHooks PipeCommunication.cpp (SetDinputDeviceGuid), ProtoInputHooks DinputOrderHook.cpp (SetControllerGuid, Hook_DinputCreateDevice8W). Not from the official docs._ Is it wrong? Tell us

Handler API docs

Is this right? Tell us what's wrong
Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop