diff options
author | purpasmart96 <kanzoconfigz@hotmail.com> | 2015-05-23 00:55:27 +0200 |
---|---|---|
committer | purpasmart96 <kanzoconfigz@hotmail.com> | 2015-05-23 00:55:27 +0200 |
commit | 0c62b7b10642ec88e2bb892f9f857cd51e0d4514 (patch) | |
tree | cf29f5d0178f27c31985ab6827e6fa40eba3bfc1 /src/core/hle/service/hid/hid.cpp | |
parent | Merge pull request #798 from yuriks/y2r-bw (diff) | |
download | yuzu-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.cpp | 20 |
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(); |