|
|
@@ -206,14 +206,14 @@ static void jcSet(uint8_t rid, hid_report_type_t type, uint8_t const* b, uint16_
|
|
|
|
|
|
void SwitchProController::begin(){
|
|
|
USBDevice.setID(0x057E, 0x2009);
|
|
|
- USBDevice.setDeviceVersion(0x0211); // bumped from 0x0210 for the added wake-mouse interface (Windows caches config by VID:PID:bcdDevice)
|
|
|
+ USBDevice.setDeviceVersion(0x0212); // bumped from 0x0211 for 1ms poll interval (Windows caches config by VID:PID:bcdDevice)
|
|
|
USBDevice.setManufacturerDescriptor("Nintendo Co., Ltd.");
|
|
|
USBDevice.setProductDescriptor("Pro Controller");
|
|
|
jcBuildStickCal();
|
|
|
g_swPro.enableOutEndpoint(true);
|
|
|
g_swPro.setReportCallback(NULL, jcSet); // answer the Nintendo USB handshake + subcommands (else Steam never binds it)
|
|
|
g_swPro.setReportDescriptor(SWPRO_HID_DESC, sizeof SWPRO_HID_DESC);
|
|
|
- g_swPro.setPollInterval(4);
|
|
|
+ g_swPro.setPollInterval(1); // 1ms bInterval so the RF rate is the only latency limit (matches Xbox)
|
|
|
g_swPro.begin();
|
|
|
}
|
|
|
void SwitchProController::task(){
|