QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
JoystickSDL.cc File Reference
#include "JoystickSDL.h"
#include "JoystickManager.h"
#include "SDLJoystick.h"
#include "QGCLoggingCategory.h"
#include <QtCore/QMetaObject>
#include <QtCore/QThread>
#include <array>
#include <SDL3/SDL.h>
+ Include dependency graph for JoystickSDL.cc:

Go to the source code of this file.

Functions

static bool sdlEventWatcher (void *userdata, SDL_Event *event)
 SDL event watcher - uses Qt::QueuedConnection for thread safety.
 

Variables

static QMap< QString, Joystick * > s_discoveryCache
 Discovery cache - main thread only, cleared in shutdown()
 

Function Documentation

◆ sdlEventWatcher()

static bool sdlEventWatcher ( void *  userdata,
SDL_Event *  event 
)
static

SDL event watcher - uses Qt::QueuedConnection for thread safety.

Definition at line 25 of file JoystickSDL.cc.

Referenced by JoystickSDL::init(), and JoystickSDL::shutdown().

Variable Documentation

◆ s_discoveryCache

QMap<QString, Joystick*> s_discoveryCache
static

Discovery cache - main thread only, cleared in shutdown()

Definition at line 22 of file JoystickSDL.cc.

Referenced by JoystickSDL::discover(), and JoystickSDL::shutdown().