Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added touched property to GamepadButton #26

Merged
merged 2 commits into from
Jul 8, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,20 @@ <h2><dfn>GamepadButton</dfn> Interface</h2>
reasonable value.
</dd>

<dt>readonly attribute boolean touched</dt>
<dd>
The touched state of the button. If the button is capable of detecting
touch this property MUST be true if the button is currently being
touched and false otherwise.

If the button is not capable of detecting touch and is capable of
reporting an analog value this property MUST be true if
the value property is greater than zero and false if the value is 0.

If the button is not capable of detecting touch and can only report a
digital value this property MUST mirror the pressed value.
</dd>

<dt>readonly attribute double value</dt>
<dd>
For buttons that have an analog sensor, this property
Expand Down