4 #ifndef SWIFT_INPUT_JOYSTICKLINUX_H
5 #define SWIFT_INPUT_JOYSTICKLINUX_H
17 class QFileSystemWatcher;
20 namespace swift::input
33 QString
getName()
const {
return m_name; }
36 QString
getPath()
const {
return m_path; }
51 QFile *m_fd =
nullptr;
77 void cleanupJoysticks();
80 void addJoystickDevice(
const QString &path);
82 void joystickButtonChanged(
const QString &name,
int index,
bool isPressed);
89 void reloadDevices(QString path);
93 QVector<CJoystickDevice *> m_joystickDevices;
94 QFileSystemWatcher *m_inputWatcher =
nullptr;