summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/hid.cpp
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2016-03-25 09:39:59 +0100
committerwwylele <wwylele@gmail.com>2016-03-25 10:22:02 +0100
commit1d2070d0d30448f79d8e39c614db4375d23b58c4 (patch)
tree87899f4934fabc002b010f68c9d0996507b4f664 /src/core/hle/service/hid/hid.cpp
parentimplement accel and gyro backend (diff)
downloadyuzu-1d2070d0d30448f79d8e39c614db4375d23b58c4.tar
yuzu-1d2070d0d30448f79d8e39c614db4375d23b58c4.tar.gz
yuzu-1d2070d0d30448f79d8e39c614db4375d23b58c4.tar.bz2
yuzu-1d2070d0d30448f79d8e39c614db4375d23b58c4.tar.lz
yuzu-1d2070d0d30448f79d8e39c614db4375d23b58c4.tar.xz
yuzu-1d2070d0d30448f79d8e39c614db4375d23b58c4.tar.zst
yuzu-1d2070d0d30448f79d8e39c614db4375d23b58c4.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/hid/hid.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index 56bf89fa8..b27ab6d9b 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -251,14 +251,13 @@ void GetGyroscopeLowCalibrateParam(Service::Interface* self) {
cmd_buff[1] = RESULT_SUCCESS.raw;
- // currently don't understand the meaning of return value,
- // so stubbed these with value from a real console.
- // TODO(wwylele): implement this correctly
- cmd_buff[2] = 0x19DDFFDC;
- cmd_buff[3] = 0x0002E5DA;
- cmd_buff[4] = 0xE5CE1A2D;
- cmd_buff[5] = 0x19C6FFF3;
- cmd_buff[6] = 0x001CE61E;
+ const s16 param_unit = 6700; // an approximate value taken from hw
+ GyroscopeCalibrateParam param = {
+ { 0, param_unit, -param_unit },
+ { 0, param_unit, -param_unit },
+ { 0, param_unit, -param_unit },
+ };
+ memcpy(&cmd_buff[2], &param, sizeof(param));
LOG_WARNING(Service_HID, "(STUBBED) called");
}