|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <QtCore/QString>#include <QtCore/QVariantMap>#include <SDL3/SDL.h>
Include dependency graph for SDLJoystick.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | SDLJoystick::JoystickLock |
| RAII lock guard for joysticks. More... | |
Namespaces | |
| namespace | SDLJoystick |
Functions | |
| bool | SDLJoystick::init () |
| Initialize SDL joystick/gamepad subsystems with QGC-specific hints. | |
| void | SDLJoystick::shutdown () |
| Shutdown SDL joystick/gamepad subsystems. | |
| bool | SDLJoystick::isInitialized () |
| Check if SDL joystick subsystem is initialized. | |
| void | SDLJoystick::pumpEvents () |
| Pump SDL events (call periodically) | |
| void | SDLJoystick::setJoystickEventsEnabled (bool enabled) |
| Enable/disable joystick event processing. | |
| bool | SDLJoystick::joystickEventsEnabled () |
| void | SDLJoystick::setGamepadEventsEnabled (bool enabled) |
| Enable/disable gamepad event processing. | |
| bool | SDLJoystick::gamepadEventsEnabled () |
| void | SDLJoystick::updateJoysticks () |
| Update joystick/gamepad state. | |
| void | SDLJoystick::updateGamepads () |
| void | SDLJoystick::lockJoysticks () |
| Lock joystick access for thread-safe operations. | |
| void | SDLJoystick::unlockJoysticks () |
| QString | SDLJoystick::gamepadTypeToString (int type) |
| Gamepad type conversions. | |
| int | SDLJoystick::gamepadTypeFromString (const QString &str) |
| QString | SDLJoystick::gamepadTypeDisplayName (int type) |
| QString | SDLJoystick::gamepadAxisToString (int axis) |
| Gamepad axis conversions. | |
| int | SDLJoystick::gamepadAxisFromString (const QString &str) |
| QString | SDLJoystick::gamepadButtonToString (int button) |
| Gamepad button conversions. | |
| int | SDLJoystick::gamepadButtonFromString (const QString &str) |
| QString | SDLJoystick::connectionStateToString (int state) |
| Connection state to string. | |
| QVariantMap | SDLJoystick::getGUIDInfo (const QString &guid) |
| Parse GUID info (vendor, product, version, crc16) | |
| QString | SDLJoystick::getMappingForGUID (const QString &guid) |
| Get mapping string for a GUID. | |
| int | SDLJoystick::addMappingsFromFile (const QString &filePath) |
| Add gamepad mappings from a file. | |
| bool | SDLJoystick::addMapping (const QString &mapping) |
| Add a single mapping string. | |
| bool | SDLJoystick::addMappingPersistent (const QString &mapping) |
| Add a mapping and persist it to user's config file. | |
| bool | SDLJoystick::reloadMappings () |
| Reload all gamepad mappings. | |
| QString | SDLJoystick::userMappingsFilePath () |
| Get path to user's custom mappings file. | |
| int | SDLJoystick::getInstanceIdFromPlayerIndex (int playerIndex) |
| Get instance ID from player index. | |
| QString | SDLJoystick::getNameForInstanceId (int instanceId) |
| Get device name for instance ID. | |
| QString | SDLJoystick::getPathForInstanceId (int instanceId) |
| Get device path for instance ID. | |
| QString | SDLJoystick::getGUIDForInstanceId (int instanceId) |
| Get GUID string for instance ID. | |
| int | SDLJoystick::getVendorForInstanceId (int instanceId) |
| Get vendor ID for instance ID. | |
| int | SDLJoystick::getProductForInstanceId (int instanceId) |
| Get product ID for instance ID. | |
| int | SDLJoystick::getProductVersionForInstanceId (int instanceId) |
| Get product version for instance ID. | |
| QString | SDLJoystick::getTypeForInstanceId (int instanceId) |
| Get gamepad type string for instance ID. | |
| QString | SDLJoystick::getRealTypeForInstanceId (int instanceId) |
| Get real (underlying) gamepad type string for instance ID. | |
| int | SDLJoystick::getPlayerIndexForInstanceId (int instanceId) |
| Get player index for instance ID. | |
| QString | SDLJoystick::getConnectionStateForInstanceId (int instanceId) |
| int | SDLJoystick::createVirtualJoystick (const QString &name, int axisCount, int buttonCount, int hatCount) |
| Create a virtual joystick. | |
| bool | SDLJoystick::destroyVirtualJoystick (int instanceId) |
| Destroy a virtual joystick. | |
| bool | SDLJoystick::isVirtualJoystick (int instanceId) |
| Check if a joystick is virtual. | |
| void | SDLJoystick::populateBindingResult (QVariantMap &result, const SDL_GamepadBinding *binding) |
| Populate a QVariantMap with binding information from SDL_GamepadBinding. | |
| template<typename MatchFunc > | |
| QVariantMap | SDLJoystick::findBinding (SDL_Gamepad *gamepad, MatchFunc matchFunc) |