Skip to content

Commit

Permalink
Allow disabling hide cursor + make dpad touch shortcut 1 line
Browse files Browse the repository at this point in the history
  • Loading branch information
streetpea committed Nov 28, 2024
1 parent 2ea7492 commit 4c5b0bf
Show file tree
Hide file tree
Showing 5 changed files with 198 additions and 141 deletions.
5 changes: 5 additions & 0 deletions gui/include/qmlsettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class QmlSettings : public QObject
{
Q_OBJECT
Q_PROPERTY(bool remotePlayAsk READ remotePlayAsk WRITE setRemotePlayAsk NOTIFY remotePlayAskChanged)
Q_PROPERTY(bool hideCursor READ hideCursor WRITE setHideCursor NOTIFY hideCursorChanged)
Q_PROPERTY(int resolutionLocalPS4 READ resolutionLocalPS4 WRITE setResolutionLocalPS4 NOTIFY resolutionLocalPS4Changed)
Q_PROPERTY(int resolutionRemotePS4 READ resolutionRemotePS4 WRITE setResolutionRemotePS4 NOTIFY resolutionRemotePS4Changed)
Q_PROPERTY(int resolutionLocalPS5 READ resolutionLocalPS5 WRITE setResolutionLocalPS5 NOTIFY resolutionLocalPS5Changed)
Expand Down Expand Up @@ -183,6 +184,9 @@ class QmlSettings : public QObject
bool remotePlayAsk() const;
void setRemotePlayAsk(bool asked);

bool hideCursor() const;
void setHideCursor(bool enabled);

int fpsLocalPS4() const;
void setFpsLocalPS4(int fps);
int fpsRemotePS4() const;
Expand Down Expand Up @@ -506,6 +510,7 @@ class QmlSettings : public QObject
#endif
void fullscreenDoubleClickChanged();
void remotePlayAskChanged();
void hideCursorChanged();
void fpsLocalPS4Changed();
void fpsRemotePS4Changed();
void fpsLocalPS5Changed();
Expand Down
3 changes: 3 additions & 0 deletions gui/include/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ class Settings : public QObject
void SetLogVerbose(bool enabled) { settings.setValue("settings/log_verbose", enabled); }
uint32_t GetLogLevelMask();

bool GetHideCursor() const { return settings.value("settings/hide_cursor", true).toBool(); }
void SetHideCursor(bool enabled) { settings.setValue("settings/hide_cursor", enabled); }

RumbleHapticsIntensity GetRumbleHapticsIntensity() const;
void SetRumbleHapticsIntensity(RumbleHapticsIntensity intensity);

Expand Down
Loading

0 comments on commit 4c5b0bf

Please sign in to comment.