Re: [w3c/gamepad] Added touched property to GamepadButton (#26)

I don't know about touchpads in general--I think your proposal to use a pair of axes for single-touch touchpads is probably okay enough, and maybe if it proves to be insufficient we could spec something more complicated based on PointerEvents in the future.

I think the `touched` property is reasonable, modulo my additional proposal in the previous comment. Without entirely wrangling it into spec-language, something like:
* If the button is capable of detecting touch, `touched` should be true if the button is currently touched and false if the button is not currently touched.
* If the button is not capable of detecting touch but has an analog value associated with it (e.g. it is a trigger), `touched` should be true if the analog value is greater than zero, and false if the analog value is zero.
* If the button is not capable of detecting touch and is a simple digital button, `touched` should mirror the value of `pressed` for the button.

should work and provide useful values for all controllers. Does that sound sensible?

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/gamepad/pull/26#issuecomment-231345506

Received on Friday, 8 July 2016 12:20:38 UTC