upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/gameinput.md
diff options
context:
space:
mode:
authorjustr4mzi <243612488+justr4mzi@users.noreply.github.com>2026-11-22 18:44:31 +0000
committerjustr4mzi <243612488+justr4mzi@users.noreply.github.com>2026-11-22 18:44:31 +0000
commitbd05e6ac7be4ac8ed0197fca7f3aa5152d42a87c (patch)
tree9fdfe326321861fab1cf94c829e8c1e176ad0e37 /docs/gameinput.md
parentfd09647e06503ac07df33ead8274bab799b0051c (diff)
docs/gameinput.md: FindDeviceFromId answers aggregate devices too
Review (@ramenbellic): aggregates live in the device list FindDeviceFromId searches, with a fixed deviceId per kind.
Diffstat (limited to 'docs/gameinput.md')
-rw-r--r--docs/gameinput.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/gameinput.md b/docs/gameinput.md
index 663ecfc9f..69edbe64c 100644
--- a/docs/gameinput.md
+++ b/docs/gameinput.md
@@ -207,7 +207,8 @@ The API surface:
207 207
208`CreateAggregateDevice` takes exactly one of the keyboard, mouse, gamepad, arcade stick, flight stick or racing wheel 208`CreateAggregateDevice` takes exactly one of the keyboard, mouse, gamepad, arcade stick, flight stick or racing wheel
209kinds (none, several, or another kind is `E_INVALIDARG`) and returns one device per kind, the same object on every 209kinds (none, several, or another kind is `E_INVALIDARG`) and returns one device per kind, the same object on every
210call: family `GameInputFamilyAggregate`, always connected, with that kind as its `supportedInput`. Readings asked 210call: family `GameInputFamilyAggregate`, always connected, with that kind as its `supportedInput`, and a fixed
211`deviceId` per kind that `FindDeviceFromId` also answers. Readings asked
211through it (`GetCurrentReading`, `GetNextReading`, `GetPreviousReading`) come from every connected device of that 212through it (`GetCurrentReading`, `GetNextReading`, `GetPreviousReading`) come from every connected device of that
212kind (`GetCurrentReading` answers the most recent of them); asking it for another kind is 213kind (`GetCurrentReading` answers the most recent of them); asking it for another kind is
213`GAMEINPUT_E_READING_NOT_FOUND`. A reading or device callback registered with an aggregate device as its filter is 214`GAMEINPUT_E_READING_NOT_FOUND`. A reading or device callback registered with an aggregate device as its filter is