summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/irs.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-27 16:18:29 +0200
committerGitHub <noreply@github.com>2018-07-27 16:18:29 +0200
commite247bd577c4725fc36e58308a2d9f652ecdf7d80 (patch)
treee7eda5b32d09450ac6030c02cfaa8145e18ebe47 /src/core/hle/service/hid/irs.cpp
parentMerge pull request #836 from FearlessTobi/port-3594 (diff)
parentservice/hid: Add the hidbus, hid:dbg, hid:sys, and hid:tmp services (diff)
downloadyuzu-e247bd577c4725fc36e58308a2d9f652ecdf7d80.tar
yuzu-e247bd577c4725fc36e58308a2d9f652ecdf7d80.tar.gz
yuzu-e247bd577c4725fc36e58308a2d9f652ecdf7d80.tar.bz2
yuzu-e247bd577c4725fc36e58308a2d9f652ecdf7d80.tar.lz
yuzu-e247bd577c4725fc36e58308a2d9f652ecdf7d80.tar.xz
yuzu-e247bd577c4725fc36e58308a2d9f652ecdf7d80.tar.zst
yuzu-e247bd577c4725fc36e58308a2d9f652ecdf7d80.zip
Diffstat (limited to 'src/core/hle/service/hid/irs.cpp')
-rw-r--r--src/core/hle/service/hid/irs.cpp49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/irs.cpp b/src/core/hle/service/hid/irs.cpp
new file mode 100644
index 000000000..aaf311912
--- /dev/null
+++ b/src/core/hle/service/hid/irs.cpp
@@ -0,0 +1,49 @@
+// Copyright 2018 yuzu emulator team
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#include "core/hle/service/hid/irs.h"
+
+namespace Service::HID {
+
+IRS::IRS() : ServiceFramework{"irs"} {
+ // clang-format off
+ static const FunctionInfo functions[] = {
+ {302, nullptr, "ActivateIrsensor"},
+ {303, nullptr, "DeactivateIrsensor"},
+ {304, nullptr, "GetIrsensorSharedMemoryHandle"},
+ {305, nullptr, "StopImageProcessor"},
+ {306, nullptr, "RunMomentProcessor"},
+ {307, nullptr, "RunClusteringProcessor"},
+ {308, nullptr, "RunImageTransferProcessor"},
+ {309, nullptr, "GetImageTransferProcessorState"},
+ {310, nullptr, "RunTeraPluginProcessor"},
+ {311, nullptr, "GetNpadIrCameraHandle"},
+ {312, nullptr, "RunPointingProcessor"},
+ {313, nullptr, "SuspendImageProcessor"},
+ {314, nullptr, "CheckFirmwareVersion"},
+ {315, nullptr, "SetFunctionLevel"},
+ {316, nullptr, "RunImageTransferExProcessor"},
+ {317, nullptr, "RunIrLedProcessor"},
+ {318, nullptr, "StopImageProcessorAsync"},
+ {319, nullptr, "ActivateIrsensorWithFunctionLevel"},
+ };
+ // clang-format on
+
+ RegisterHandlers(functions);
+}
+
+IRS_SYS::IRS_SYS() : ServiceFramework{"irs:sys"} {
+ // clang-format off
+ static const FunctionInfo functions[] = {
+ {500, nullptr, "SetAppletResourceUserId"},
+ {501, nullptr, "RegisterAppletResourceUserId"},
+ {502, nullptr, "UnregisterAppletResourceUserId"},
+ {503, nullptr, "EnableAppletToGetInput"},
+ };
+ // clang-format on
+
+ RegisterHandlers(functions);
+}
+
+} // namespace Service::HID