move MotionEmu from core/frontend to input_common as a InputDevice

This commit is contained in:
wwylele 2017-08-07 00:04:06 +03:00
parent 867eabd6b7
commit 188194908c
17 changed files with 221 additions and 244 deletions

View file

@ -112,16 +112,15 @@ using AnalogDevice = InputDevice<std::tuple<float, float>>;
* A motion device is an input device that returns a tuple of accelerometer state vector and
* gyroscope state vector.
*
* For accelerometer state vector:
* For both vectors:
* x+ is the same direction as LEFT on D-pad.
* y+ is normal to the touch screen, pointing outward.
* z+ is the same direction as UP on D-pad.
* Units: measured in unit of gravitational acceleration
*
* For accelerometer state vector
* Units: g (gravitational acceleration)
*
* For gyroscope state vector:
* x+ is the same direction as LEFT on D-pad.
* y+ is normal to the touch screen, pointing outward.
* z+ is the same direction as UP on D-pad.
* Orientation is determined by right-hand rule.
* Units: deg/sec
*/