aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/hle/service/hid/hid.cpp
diff options
context:
space:
mode:
authorGravatar purpasmart96 <kanzoconfigz@hotmail.com>2015-05-22 15:55:27 -0700
committerGravatar purpasmart96 <kanzoconfigz@hotmail.com>2015-05-22 15:55:27 -0700
commit0c62b7b10642ec88e2bb892f9f857cd51e0d4514 (patch)
treecf29f5d0178f27c31985ab6827e6fa40eba3bfc1 /src/core/hle/service/hid/hid.cpp
parenteca2b71fa8a6c4c104695b866952e4295dc6466f (diff)
HID: Stub DisableAccelerometer and DisableGyroscopeLow
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 9695f7e5..2d2133b2 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();