Description

Retrieves the number of Commander devices currently recognized by the host system.

The number of devices is represented in the return value. The function returns -1 if no devices are connected. NOTE: If a Commander is connected or disconnected this function will need to be called again for the count to be accurate.

Arguments

None  

This function does not accept any parameters.

Return Value

Type: Int


Value

Meaning

-1

No recognized device

η

η devices were recognized (general case for multiple devices)

Examples

  • Python

api = DLLInterface()

# Get Commander Count

count = api.dll.GetCommanderCount()

if count > -1:

   print(f"Connected Devices: {count}")

else:

   print("No Commanders Connected")


V 1.0 Function: GetCommanderHIDnumber()


REPOSITORY PLACEHOLDER LINK


< Previous | Topic Home | Home |  Next  >