-H flag added for headless mode. Requires profile name without the .lyt extension.

This commit is contained in:
Storm Dragon
2025-06-30 21:16:57 -04:00
parent 811bae82d7
commit a0f6f34701
7 changed files with 123 additions and 51 deletions

View File

@ -38,7 +38,7 @@ class LayoutManager : public QObject {
friend class LayoutEdit;
Q_OBJECT
public:
LayoutManager(bool useTrayIcon, const QString &devdir, const QString &settingsDir);
LayoutManager(bool useTrayIcon, const QString &devdir, const QString &settingsDir, bool headless = false);
~LayoutManager();
//produces a list of the names of all the available layout.
@ -111,6 +111,7 @@ class LayoutManager : public QObject {
QHash<int, JoyPad*> available;
QHash<int, JoyPad*> joypads;
bool isNotrayMode;
bool isHeadless;
#ifdef WITH_LIBUDEV
bool initUDev();