3.1.3 GetCommanderCount
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 must 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 >