summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2019-11-09 23:34:51 +0100
committerGitHub <noreply@github.com>2019-11-09 23:34:51 +0100
commiteebc64aaf872917c4a7d480026545fe8a87d662f (patch)
tree1d9246ad8a7ca0a2e28815f64ae14341c9c88648 /Source/Core/Common
parent07e2e1ca5a385cdab7bcf8ba8a9307b8c1805f6e (diff)
parent1180c231a697297f468020a56db236ef795101e5 (diff)
Merge pull request #8460 from jordan-woyak/evdev-motion-data
InputCommon: Detect when evdev exposes acceleration/gyroscope data.
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/MathUtil.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/Common/MathUtil.h b/Source/Core/Common/MathUtil.h
index 1556f8e39f..c8489a389a 100644
--- a/Source/Core/Common/MathUtil.h
+++ b/Source/Core/Common/MathUtil.h
@@ -17,6 +17,7 @@ namespace MathUtil
{
constexpr double TAU = 6.2831853071795865;
constexpr double PI = TAU / 2;
+constexpr double GRAVITY_ACCELERATION = 9.80665;
template <typename T>
constexpr auto Sign(const T& val) -> decltype((T{} < val) - (val < T{}))