* @brief Get complete HID driver configuration and connected-device info. */
| 129 | * @brief Get complete HID driver configuration and connected-device info. |
| 130 | */ |
| 131 | API::CommandResponse API::Handlers::HIDHandler::getConfiguration(const QString& id, |
| 132 | const QJsonObject& params) |
| 133 | { |
| 134 | Q_UNUSED(params) |
| 135 | |
| 136 | auto* hid = IO::ConnectionManager::instance().hid(); |
| 137 | |
| 138 | QJsonObject result; |
| 139 | result[QStringLiteral("deviceIndex")] = hid->deviceIndex(); |
| 140 | result[QStringLiteral("usagePage")] = hid->usagePage(); |
| 141 | result[QStringLiteral("usage")] = hid->usage(); |
| 142 | return CommandResponse::makeSuccess(id, result); |
| 143 | } |
nothing calls this directly
no test coverage detected