summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/am.h
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2022-06-20 22:59:26 +0200
committerGitHub <noreply@github.com>2022-06-20 22:59:26 +0200
commit0d5792cc57112c7db54cbd362d1dcdadae6ec27d (patch)
tree9cbf688bee4157c78ba1b04fe27e9cfae4d0dd1b /src/core/hle/service/am/am.h
parentMerge pull request #8476 from liamwhite/gpu-wasnt-ready (diff)
parentservice: am: Stub PerformSystemButtonPressingIfInFocus (diff)
downloadyuzu-0d5792cc57112c7db54cbd362d1dcdadae6ec27d.tar
yuzu-0d5792cc57112c7db54cbd362d1dcdadae6ec27d.tar.gz
yuzu-0d5792cc57112c7db54cbd362d1dcdadae6ec27d.tar.bz2
yuzu-0d5792cc57112c7db54cbd362d1dcdadae6ec27d.tar.lz
yuzu-0d5792cc57112c7db54cbd362d1dcdadae6ec27d.tar.xz
yuzu-0d5792cc57112c7db54cbd362d1dcdadae6ec27d.tar.zst
yuzu-0d5792cc57112c7db54cbd362d1dcdadae6ec27d.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/am/am.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h
index 06f13aa09..988ead215 100644
--- a/src/core/hle/service/am/am.h
+++ b/src/core/hle/service/am/am.h
@@ -220,6 +220,18 @@ private:
Docked = 1,
};
+ // This is nn::am::service::SystemButtonType
+ enum class SystemButtonType {
+ None,
+ HomeButtonShortPressing,
+ HomeButtonLongPressing,
+ PowerButtonShortPressing,
+ PowerButtonLongPressing,
+ ShutdownSystem,
+ CaptureButtonShortPressing,
+ CaptureButtonLongPressing,
+ };
+
void GetEventHandle(Kernel::HLERequestContext& ctx);
void ReceiveMessage(Kernel::HLERequestContext& ctx);
void GetCurrentFocusState(Kernel::HLERequestContext& ctx);
@@ -234,6 +246,7 @@ private:
void EndVrModeEx(Kernel::HLERequestContext& ctx);
void GetDefaultDisplayResolution(Kernel::HLERequestContext& ctx);
void SetCpuBoostMode(Kernel::HLERequestContext& ctx);
+ void PerformSystemButtonPressingIfInFocus(Kernel::HLERequestContext& ctx);
void SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled(Kernel::HLERequestContext& ctx);
std::shared_ptr<AppletMessageQueue> msg_queue;