QcGamepadTypeDetection Namespace
Which family a pad belongs to, from its USB/Bluetooth vendor and product id and its name (decision E-540): Microsoft is Xbox, Sony PlayStation, Nintendo's Pro Controller (and the combined Joy-Cons) Switch Pro, any other Nintendo product (a single Joy-Con) Generic; without a known vendor the name decides ("Xbox", "DualSense", "DualShock", "PS4", "PS5", "Pro Controller", "Switch"; a single "Joy-Con (L)"/"(R)" is Generic), else Generic. More...
| Header: | #include <clientcore/input/QcGamepadTypeDetection.h> |
Functions
| QcGamepadType | detect(quint16 vendor, quint16 product, const QString &name) |
Detailed Description
Backends that know the type themselves (SDL) use this only when they report none.
Function Documentation
QcGamepadType QcGamepadTypeDetection::detect(quint16 vendor, quint16 product, const QString &name)
Returns the family of a pad with the USB/Bluetooth ids vendor and product and the name name.