- From: Matt Reynolds <notifications@github.com>
- Date: Fri, 25 Apr 2025 19:50:06 -0700
- To: w3c/gamepad <gamepad@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/gamepad/pull/220/review/2795694199@github.com>
@nondebug commented on this pull request. > + [=gamepad=] is [=available=]. Each input control has one or more + <dfn>input values</dfn> that may update over time. + </p> + <p> + The [=user agent=] is responsible for enumerating [=available=] + [=gamepads=], detecting when [=gamepads=] become [=available=] or + [=unavailable=], and detecting when input controls have updated input + values. + </p> + <p> + A [=gamepad=] has a <dfn>gamepad identifier string</dfn>, a + human-readable string that identifies the brand or style of + [=gamepad=]. The content is decided by the [=user agent=]. + </p> + <p> + A [=gamepad=] may be a physical device. If so, it has an <dfn>input Here I'm trying to define [=gamepad=] so that the input layout is optional. In the Automation section I'm planning to define "simulated gamepad" as a [=gamepad=] so it can be passed to algorithms that accept a [=gamepad=]. Gamepads created by WebDriver won't have an input layout so I want to note here that it's optional. > Can a gamepad be something other than a physical device Yes, it can be a virtual device or a WebDriver simulated gamepad. It's a bit of a tangent and it's not relevant here so I think I'll try to rewrite this to remove the "physical" distinction and focus on the fact that the input layout is optional. The issue is that, as defined, an input layout only exists if the gamepad is a physical device but the browser doesn't actually have a way to distinguish physical devices from virtual devices. A virtual device might be designed to behave indistinguishably from a physical device, or the difference between real and physical gamepads might be obscured by the system input API. The spec should allow the browser to use heuristics to assume the input layout given hints from device identifiers or the system input API. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/gamepad/pull/220#discussion_r2061127299 You are receiving this because you are subscribed to this thread. Message ID: <w3c/gamepad/pull/220/review/2795694199@github.com>
Received on Saturday, 26 April 2025 02:50:10 UTC