summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2017-01-16 08:59:16 +0100
committerwwylele <wwylele@gmail.com>2017-01-16 08:59:16 +0100
commit47960b065901f8aec53696535fb46fe20c0908e4 (patch)
treef40e211ce132a79fa9dbff5a74980d0a84bde3ff /src/core/hle
parentHID: manages updating itself using correct ticks (diff)
downloadyuzu-47960b065901f8aec53696535fb46fe20c0908e4.tar
yuzu-47960b065901f8aec53696535fb46fe20c0908e4.tar.gz
yuzu-47960b065901f8aec53696535fb46fe20c0908e4.tar.bz2
yuzu-47960b065901f8aec53696535fb46fe20c0908e4.tar.lz
yuzu-47960b065901f8aec53696535fb46fe20c0908e4.tar.xz
yuzu-47960b065901f8aec53696535fb46fe20c0908e4.tar.zst
yuzu-47960b065901f8aec53696535fb46fe20c0908e4.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/hid/hid.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index 9e4a7f888..9bca97c1c 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -40,9 +40,9 @@ static int accelerometer_update_event;
static int gyroscope_update_event;
// Updating period for each HID device. These empirical values are measured from a 11.2 3DS.
-constexpr u64 pad_update_ticks = 268123480ull / 234;
-constexpr u64 accelerometer_update_ticks = 268123480ull / 104;
-constexpr u64 gyroscope_update_ticks = 268123480ull / 101;
+constexpr u64 pad_update_ticks = BASE_CLOCK_RATE_ARM11 / 234;
+constexpr u64 accelerometer_update_ticks = BASE_CLOCK_RATE_ARM11 / 104;
+constexpr u64 gyroscope_update_ticks = BASE_CLOCK_RATE_ARM11 / 101;
static PadState GetCirclePadDirectionState(s16 circle_pad_x, s16 circle_pad_y) {
// 30 degree and 60 degree are angular thresholds for directions