JibbSmart / JoyShockLibrary

Read DualSense, DualShock 4, JoyCon, and Pro Controller input on PC -- compiled for Windows, but code should work on other platforms.
Other
226 stars 42 forks source link

Ds4 dongle #13

Closed Nielk1 closed 3 years ago

Nielk1 commented 3 years ago

Implemented basic DS4 dongle support. The dongle acts like a USB connection aside from the addition of a single bit in the report. This bit is high when no controller is attached and 0 for all standard controller connections making logic checking this bit backwards compatible with non-dongle connections. Note that when the dongle has no controller attached it will return the same report on repeat. This report, with no delta time between identical motions, will cause JSM's logic to divide-by-zero if passed along. For this reason all reports from a dongle in the disconnected state are considered invalid in this pull.

JibbSmart commented 3 years ago

Thanks for that, Nielk1!