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
commit eebc64aaf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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{}))