API - Valkirie/HandheldCompanion GitHub Wiki

The CHandheld Companion application supports a CLI API. See below for an overview of options.

HandheldCompanion.exe profile

  • --whitelist (Optional if present, application can access physical controller)
  • --wrapper (Optional if present, application will rely on wrapper dll to translate directinput calls to xinput calls)
  • --umc (Optional if present, will translate gyroscope to controls)
  • --input (Optional value has to be within InputStyle)
  • --trigger (Optional value has to be within GamepadButtonFlags)
  • --exe (Required path to executable)

Example:

HandheldCompanion.exe profile --wrapper --umc --input=1 --trigger=65536 --exe="C:\Users\benja\AppData\Local\Playnite\Playnite.DesktopApp.exe"

HandheldCompanion.exe device

  • --cloak (Optional if present, cloak the physical controller)
  • --mode (Required value has to be within HIDmode)

Example:

HandheldCompanion.exe device --cloak --mode=1

HandheldCompanion.exe service

  • --action (Required value has to be within ProfileServiceAction)

Example:

HandheldCompanion.exe service --action="install"