summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/hid_registration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/service/am/hid_registration.cpp')
-rw-r--r--src/core/hle/service/am/hid_registration.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/service/am/hid_registration.cpp b/src/core/hle/service/am/hid_registration.cpp
index b9426f7b6..8ed49bac1 100644
--- a/src/core/hle/service/am/hid_registration.cpp
+++ b/src/core/hle/service/am/hid_registration.cpp
@@ -26,4 +26,10 @@ HidRegistration::~HidRegistration() {
}
}
+void HidRegistration::EnableAppletToGetInput(bool enable) {
+ if (m_process.IsInitialized()) {
+ m_hid_server->GetResourceManager()->EnableInput(m_process.GetProcessId(), enable);
+ }
+}
+
} // namespace Service::AM