summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/hid.cpp
diff options
context:
space:
mode:
authorpurpasmart96 <kanzoconfigz@hotmail.com>2015-05-23 00:55:27 +0200
committerpurpasmart96 <kanzoconfigz@hotmail.com>2015-05-23 00:55:27 +0200
commit0c62b7b10642ec88e2bb892f9f857cd51e0d4514 (patch)
treecf29f5d0178f27c31985ab6827e6fa40eba3bfc1 /src/core/hle/service/hid/hid.cpp
parentMerge pull request #798 from yuriks/y2r-bw (diff)
downloadyuzu-0c62b7b10642ec88e2bb892f9f857cd51e0d4514.tar
yuzu-0c62b7b10642ec88e2bb892f9f857cd51e0d4514.tar.gz
yuzu-0c62b7b10642ec88e2bb892f9f857cd51e0d4514.tar.bz2
yuzu-0c62b7b10642ec88e2bb892f9f857cd51e0d4514.tar.lz
yuzu-0c62b7b10642ec88e2bb892f9f857cd51e0d4514.tar.xz
yuzu-0c62b7b10642ec88e2bb892f9f857cd51e0d4514.tar.zst
yuzu-0c62b7b10642ec88e2bb892f9f857cd51e0d4514.zip
Diffstat (limited to 'src/core/hle/service/hid/hid.cpp')
-rw-r--r--src/core/hle/service/hid/hid.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index 9695f7e56..2d2133b2e 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -136,6 +136,16 @@ void EnableAccelerometer(Service::Interface* self) {
LOG_WARNING(Service_HID, "(STUBBED) called");
}
+void DisableAccelerometer(Service::Interface* self) {
+ u32* cmd_buff = Kernel::GetCommandBuffer();
+
+ event_accelerometer->Signal();
+
+ cmd_buff[1] = RESULT_SUCCESS.raw;
+
+ LOG_WARNING(Service_HID, "(STUBBED) called");
+}
+
void EnableGyroscopeLow(Service::Interface* self) {
u32* cmd_buff = Kernel::GetCommandBuffer();
@@ -146,6 +156,16 @@ void EnableGyroscopeLow(Service::Interface* self) {
LOG_WARNING(Service_HID, "(STUBBED) called");
}
+void DisableGyroscopeLow(Service::Interface* self) {
+ u32* cmd_buff = Kernel::GetCommandBuffer();
+
+ event_gyroscope->Signal();
+
+ cmd_buff[1] = RESULT_SUCCESS.raw;
+
+ LOG_WARNING(Service_HID, "(STUBBED) called");
+}
+
void GetSoundVolume(Service::Interface* self) {
u32* cmd_buff = Kernel::GetCommandBuffer();