Analog Controls
1
Left Trigger
0x02 0x00C5
AXIS_LTRIGGER
Right Trigger
0x02 0x00C4
AXIS_RTRIGGER
Left Joystick
0x01 0x0030
0x01 0x0031
AXIS_X
AXIS_Y
Right Joystick
0x01 0x0032
0x01 0x0035
AXIS_Z
AXIS_RZ
1
MotionEvent
7.2.7. Remote Control
See
Section 2.3.1
for device-specific requirements.
7.3. Sensors
If device implementations include a particular sensor type that has a corresponding API for third-
party developers, the device implementation MUST implement that API as described in the Android
SDK documentation and the Android Open Source documentation on
sensors
.
Device implementations:
[C-0-1] MUST accurately report the presence or absence of sensors per the
android.content.pm.PackageManager
class.
[C-0-2] MUST return an accurate list of supported sensors via the
SensorManager.getSensorList()
and similar methods.
[C-0-3] MUST behave reasonably for all other sensor APIs (for example, by returning
true
or
false
as appropriate when applications attempt to register listeners, not calling sensor
listeners when the corresponding sensors are not present; etc.).
If device implementations include a particular sensor type that has a corresponding API for third-
party developers, they:
[C-1-1] MUST
report all sensor measurements
using the relevant International System of
Units (metric) values for each sensor type as defined in the Android SDK documentation.
[C-1-2] MUST report sensor data with a maximum latency of 100 milliseconds + 2 *
sample_time for the case of a sensor streamed with a minimum required latency of 5 ms
+ 2 * sample_time when the application processor is active. This delay does not include
any filtering delays.
[C-1-3] MUST report the first sensor sample within 400 milliseconds + 2 * sample_time of
the sensor being activated. It is acceptable for this sample to have an accuracy of 0.
[SR] SHOULD
report the event time
in nanoseconds as defined in the Android SDK
documentation, representing the time the event happened and synchronized with the
SystemClock.elapsedRealtimeNano() clock. Existing and new Android devices are
STRONGLY RECOMMENDED
to meet these requirements so they will be able to upgrade
to the future platform releases where this might become a REQUIRED component. The
synchronization error SHOULD be below 100 milliseconds.
[C-1-4] For any API indicated by the Android SDK documentation to be a
continuous
sensor
, device implementations MUST continuously provide periodic data samples that
SHOULD have a jitter below 3%, where jitter is defined as the standard deviation of the
difference of the reported timestamp values between consecutive events.
[C-1-5] MUST ensure that the sensor event stream MUST NOT prevent the device CPU
Page 82 of 132