port_connect - Connect output connection
void port_connect();
void port_connect(uint8 port, <PROTOCOL_IDENTIFIER>);
Try establish an output connection utilizing the default output protocol configured by the user, or using the output protocol specified by the optional arguments.
Table 1 | |
Index | Port Designator |
---|---|
0 | PORT_USB_C |
6 | PORT_BT_C |
Table 2 |
Protocol Identifiers |
---|
PROTOCOL_AUTO |
PROTOCOL_PS3 |
PROTOCOL_PS4 |
PROTOCOL_XB360 |
PROTOCOL_XB1 |
PROTOCOL_SWITCH |
PROTOCOL_HID |
PROTOCOL_WHEEL |
PROTOCOL_WII |
No value is returned.
init { // Change the output protocol to USB Multi Interface HID. port_connect(PORT_USB_C, PROTOCOL_HID); }