diff options
| author | Bora Sevim <sevimbora@gmail.com> | 2026-11-22 22:35:50 +0300 |
|---|---|---|
| committer | Bora Sevim <sevimbora@gmail.com> | 2026-11-22 22:35:50 +0300 |
| commit | 364fdcbd28feb1708fd28b4727b3cc8f4a1ad1a7 (patch) | |
| tree | acce8da5f81d727993a9cbc8bb11400d89fecda9 /docs/d3d12_command_objects.md | |
| parent | 162821017ea3c286c8bec860f3ff94f037912061 (diff) | |
gameinput: raw HID reports and raw device I/O through SDL's hidapi (RT-175)
The shim opens each pad's HID device with SDL_hid_* (by SDL's device path, else the one game-pad collection with the
pad's vendor and product id) and reads its report descriptor for every input, output and feature report's id and
size. Such a pad reports GameInputKindRawDeviceReport and GameInputDeviceRawIoEnabled and fills inputReportInfo,
outputReportInfo and featureReportInfo (no item tables). Readings carry the newest raw input report, and
IGameInputReading::GetRawReport returns it as an IGameInputRawDeviceReport. CreateRawDeviceReport,
GetRawDeviceFeature, SetRawDeviceFeature and SendRawDeviceOutput work through the backend; an undeclared id or kind
is E_INVALIDARG, a failed transfer E_FAIL, and a pad without a HID device keeps E_NOTIMPL.
gameinput_abi.h declares IGameInputRawDeviceReport, GameInputRawDeviceReportKind and the three raw report info
structs, checked against Microsoft's v0 header (offsetof for every field, the 12 vtable slots, the IID). Xbox pads on
Windows go through XInput, whose HID interface SDL's hidapi skips, so they have no raw I/O; the log says so.
gameinput_test covers the descriptor parser and the whole path with a fake HID backend (24 checks);
gameinput_probe prints each pad's report tables and newest raw input report. docs/gameinput.md: "Raw HID".
Diffstat (limited to 'docs/d3d12_command_objects.md')
0 files changed, 0 insertions, 0 deletions