summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-12-15 23:45:24 +0100
committerGitHub <noreply@github.com>2016-12-15 23:45:24 +0100
commit9dc43d3720fb852a5aa66b1b9e644fd102a61995 (patch)
tree3ff5893b524937ae640967aa74f0675f4e38072d /src/core
parentMerge pull request #2330 from lioncash/pragma (diff)
parenthid: Get rid of a double -> float truncation warning (diff)
downloadyuzu-9dc43d3720fb852a5aa66b1b9e644fd102a61995.tar
yuzu-9dc43d3720fb852a5aa66b1b9e644fd102a61995.tar.gz
yuzu-9dc43d3720fb852a5aa66b1b9e644fd102a61995.tar.bz2
yuzu-9dc43d3720fb852a5aa66b1b9e644fd102a61995.tar.lz
yuzu-9dc43d3720fb852a5aa66b1b9e644fd102a61995.tar.xz
yuzu-9dc43d3720fb852a5aa66b1b9e644fd102a61995.tar.zst
yuzu-9dc43d3720fb852a5aa66b1b9e644fd102a61995.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/hid/hid.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index 99baded11..18a1b6a16 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -37,7 +37,8 @@ static int enable_gyroscope_count = 0; // positive means enabled
static PadState GetCirclePadDirectionState(s16 circle_pad_x, s16 circle_pad_y) {
// 30 degree and 60 degree are angular thresholds for directions
- constexpr float TAN30 = 0.577350269, TAN60 = 1 / TAN30;
+ constexpr float TAN30 = 0.577350269f;
+ constexpr float TAN60 = 1 / TAN30;
// a circle pad radius greater than 40 will trigger circle pad direction
constexpr int CIRCLE_PAD_THRESHOLD_SQUARE = 40 * 40;
PadState state;