Merge pull request #8460 from jordan-woyak/evdev-motion-data

InputCommon: Detect when evdev exposes acceleration/gyroscope data.
This commit is contained in:
Léo Lam
2019-11-09 23:34:51 +01:00
committed by GitHub
5 changed files with 155 additions and 76 deletions

View File

@ -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{}))