diff options
author | bunnei <bunneidev@gmail.com> | 2015-05-23 02:44:22 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-05-23 02:44:22 +0200 |
commit | 41531eeb32ef86f4b04af2f5fda85148a87c56ad (patch) | |
tree | 3f12c15d76dcf88b1a049652dad31de86bd6fb39 /src/core/hle/service/hid/hid.cpp | |
parent | Merge pull request #803 from lioncash/typo (diff) | |
parent | HID: Stub DisableAccelerometer and DisableGyroscopeLow (diff) | |
download | yuzu-41531eeb32ef86f4b04af2f5fda85148a87c56ad.tar yuzu-41531eeb32ef86f4b04af2f5fda85148a87c56ad.tar.gz yuzu-41531eeb32ef86f4b04af2f5fda85148a87c56ad.tar.bz2 yuzu-41531eeb32ef86f4b04af2f5fda85148a87c56ad.tar.lz yuzu-41531eeb32ef86f4b04af2f5fda85148a87c56ad.tar.xz yuzu-41531eeb32ef86f4b04af2f5fda85148a87c56ad.tar.zst yuzu-41531eeb32ef86f4b04af2f5fda85148a87c56ad.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(); |