Copyright 2016 The Chromium Authors.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice (including the next
paragraph) shall be included in all copies or substantial portions of the
Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
A global interface to provide gaming input devices for a given seat.
Currently only gamepad devices are supported.
Warning! The protocol described in this file is experimental and
backward incompatible changes may be made. Backward compatible changes
may be added together with the corresponding uinterface version bump.
Backward incompatible changes are done by bumping the version number in
the protocol and uinterface names and resetting the interface version.
Once the protocol is to be declared stable, the 'z' prefix and the
version number in the protocol and interface names are removed and the
interface version number is reset.
Create gamepad object. See zcr_gamepad_v1 interface for details.
The zcr_gamepad_v1 interface represents one or more gamepad input devices,
which are reported as a normalized 'Standard Gamepad' as it is specified
by the W3C Gamepad API at: https://w3c.github.io/gamepad/#remapping
Notification that this seat's connection state has changed.
Notification of axis change.
The axis id specifies which axis has changed as defined by the W3C
'Standard Gamepad'.
The value is calibrated and normalized to the -1 to 1 range.
Describes the physical state of a button that produced the button
event.
Notification of button change.
The button id specifies which button has changed as defined by the W3C
'Standard Gamepad'.
A button can have a digital and an analog value. The analog value is
normalized to a 0 to 1 range.
If a button does not provide an analog value, it will be derived from
the digital state.
Indicates the end of a set of events that logically belong together.
A client is expected to accumulate the data in all events within the
frame before proceeding.