Commit Graph

56 Commits

Author SHA1 Message Date
657808a7df gameinput (no SDL3): take the script's changes between two reads at their own time instead of a clock thread (maintainer fix on #2372)
#2372 started a detached thread that took the input lock every 8 ms, so that a scripted press that begins and ends
while the title is not reading reaches the reading history. That works around the cause and adds its own: the
history then depends on how the host schedules a Sleep(8) thread (a slow or loaded machine keeps fewer edges, and a
Windows timer tick of 15.6 ms drops a short hold), the thread never ends, and it contends with the title's reads.

The cause is that update() looked only at the state at the moment of the read. It now first adds a reading for every
start and end of a press since the last update, stamped with the script's time, then the state at the read: the
history is the same however often the title reads, on any machine, and no thread runs. The press log lines carry the
script's time of the press.

Also: LEONIDA_INPUT_TRACE (added by #2372) is documented in docs/gameinput.md and runtime/README.md, as
tests/test_docs_env_vars.py requires. gameinput_no_sdl_script gains y@10, which the title never reads while it is down
(reads at 4.5 s and 60 s): the press and its release must be in the history with their own timestamps. On main the
history has no Y reading.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 13:17:06 -05:00
4e93ea9ef3 gameinput: advance scripted input clock without SDL3 2026-11-26 17:17:16 +01:00
d7d697314f docs: name the diagnostic variables LEONIDA_UNKNOWN_TSHARP, UNBACKED_VSHARP, UPLOAD_LOG, UPLOAD_ALIAS and INPUT_FILE
tests/test_docs_env_vars.py requires every variable the code reads to be named in a document; the night's diagnostics were not.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 09:22:29 -05:00
1ce60558c7 gameinput: the SDL keyboard pad honours a scripted hold too
#2098 gave the SDL path its own loop (held 300 ms, then until the title
has read the pads six times, at most 5 s), which ignored button@seconds:hold.
A press now lasts its own hold, then the read latch, and never past 5 s or
its hold if longer. The long-script test checks both: X kept past 300 ms
until six reads, Y kept for its 0.6 s after them. It fails on the old loop.

Found by AndreiKocherzhinskiiA on #1608.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 04:58:19 +00:00
f0e79141a4 gameinput: a scripted press can be held longer (button@seconds:hold)
At world-start frame rates the retail title reads its pad every few seconds,
so a 0.3 s scripted press falls between two reads and never arrives. An
entry may now give its own hold time; without one the press stays 0.3 s.
Holds of 0 or less, over 600 s or that are not a number reject the entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 04:58:19 +00:00
9f98dcc617 Improve post-load GPU memory and pipeline handling (RT-POST-LOAD-GPU-MEMORY)
Fall back to a dedicated buffer allocation when the shared arena fills.
Update console descriptors and resource backing, preserve pipeline cache
entries, and replay mesh records using bounded indirect arguments. Keep
scripted input available until read and cover the runtime and translator
paths with synthetic tests.

Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com>
Co-authored-by: ivanepsilondelta <264061546+ivanepsilondelta@users.noreply.github.com>
2026-11-25 14:30:51 -06:00
c68f494160 RT-INPUT-SCRIPT-NO-SDL3: serve LEONIDA_INPUT_SCRIPT without SDL3
A build without SDL3 answered GameInputCreate with no devices and E_NOTIMPL
for every other slot, so the title waited at its first "press A" prompt
forever: no CI artifact or offline build could get past it.

With LEONIDA_INPUT_SCRIPT set, gameinput_no_sdl.cpp now serves one scripted
pad (an Xbox One gamepad) driven by the script alone: device enumeration
through RegisterDeviceCallback (blocking, async, dispatcher), FindDeviceFromId,
and GetCurrentReading/GetNextReading/GetPreviousReading whose gamepad and UI
navigation state follow the script. Readings are taken when the title asks,
so no thread polls. Without the variable it behaves as before.

The parser, the 300 ms timeline, the button names, the press log lines and
the UI navigation mapping move from gameinput.cpp into gameinput_script.h,
which both shims use; nothing in it needs SDL. gameinput.cpp checks the
shared SDL button numbers against SDL_GamepadButton at compile time.

gameinput_no_sdl_test --input-script (CTest gameinput_no_sdl_script) checks
the scripted pad on a fake clock. Docs: runtime/README.md, docs/gameinput.md,
docs/linux_proton.md, docs/README.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 07:39:13 -05:00
79d044e54d Merge pull request #972 from flp-sp/docs/gameinput-api-table-dedupe
Merging.

**Why merged:** DOC-GAMEINPUT-API-DUPES: removes two stale duplicate rows from the docs/gameinput.md API table. KernelSmoker approved it.

**Why it's good:** Docs tests: 47 passed.

Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main 0f98d193c. With it in, the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests, ctest_registration) gives 578 passed / 5 skipped / 0 failed, and check_no_game_data on the changed files is clean. git merge-tree against current main: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 18:22:54 -05:00
f9ba70b4de gameinput: keyboard pad input scripts of any length (RT-INPUT-SCRIPT-LENGTH)
Main had no keyboard pad script scheduler. Add timed button presses with
a full-length environment reader so entries beyond byte 63 reach the pad.
Combine scheduled and physical presses. Reject malformed entries and
report their count when the script is read on the first pad update.

Build gta6rt and gameinput_test. Exercise a long script, rejected items,
focus loss, configuration reload and release under Wine. Restore only the
old environment reader to reproduce the missing presses.

Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com>


AI-assisted (Codex and Claude Code agents).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 12:57:22 -06:00
2b21eb603e docs: drop stale duplicate GameInput API rows 2026-11-24 12:59:49 -03:00
31e2ad84c1 docs: distinguish native GameInput host failures (DOC-GAMEINPUT-HOST-DIAG) 2026-11-24 16:17:08 +11:00
2f6aa6fb5b Merge remote-tracking branch 'origin/pr/9765' 2026-11-23 17:24:53 -05:00
29bd7a11a6 gameinput: the device info has its GameInputLabel members
gameinput_abi.h left out the labels of the public v0 layout. In
GameInputControllerAxisInfo and GameInputControllerButtonInfo a label
sits at offset 4, in what is otherwise padding, so the sizes matched
while isContinuous, restValue, legacyDInputIndex and rawReportIndex were
four bytes early. GameInputGamepadInfo and GameInputUiNavigationInfo are
tables of 14 and 21 labels; they were declared empty, and the pointers
in GameInputDeviceInfo led to one-byte members, so a title reading a
label read whatever followed.

The header declares the enum, the two tables and the two label members
and pins each offset that moved. fill_info gives every control the Xbox
label of its position on every pad, since every pad is presented as an
Xbox One pad.

gameinput_test reads the tables by the public header's byte offsets, so
the shim's own header cannot agree with itself.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 23:15:46 +01:00
52b4f03b78 GameInput: honor the delay between trigger haptic pulses 2026-11-24 08:34:25 +11:00
fb7575981b Merge pull request #4553 from Maxime Mansiet
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:15:52 -05:00
66d9217616 Merge pull request #4552 from Maxime Mansiet
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/gameinput.md
2026-11-22 23:15:51 -05:00
b7af140cfd Merge pull request #4054 from Maraco91
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/README.md
2026-11-22 23:10:51 -05:00
e549ac4c07 Merge pull request #3851 from Leonida local test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:08:54 -05:00
0519bc2c81 gameinput: a reading callback's inputKind filter checks what the device supports
Signed-off-by: Maxime Mansiet <AirKyzzZ@users.noreply.github.com>
2026-11-23 03:05:55 +01:00
399b30f69b gameinput: GetRawReport holds hid_mu while it reads the raw reports
Signed-off-by: Maxime Mansiet <AirKyzzZ@users.noreply.github.com>
2026-11-23 02:59:55 +01:00
8a4fb72756 docs/gameinput.md: the buttons set the bit of the name Mapping gives, not a bit of the table
The Mapping table lists names, not bits (review of #4054).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 00:28:31 +01:00
f44e36c2a9 docs/gameinput.md: the shim on a real DualSense over USB
gameinput_probe with a DualSense (054c:0ce6) over USB on Windows 11: it
connects with trigger effects and gyro, each of the 14 gamepad buttons
sets its own bit of the mapping table, triggers and sticks reach full
scale, the accelerometer clamps at 1.00 on a hand shake, and the raw HID
tables and a changing raw input report are there. Rumble, trigger effects
and the lightbar are as reported by the person holding the pad.

Bluetooth, the resistance trigger mode, a DualShock 4 and a Switch Pro
are still to confirm.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 00:10:11 +01:00
dc01a17397 gameinput: report SDL's effect result from gameinput_probe (RT-160)
`--force-feedback` now reads the shim's output state once the poll thread has
picked the effect up, and says whether SDL created it and is running it, or why
it did not, so a wheel owner can tell a silent drop from a real run. The shim
records SDL_CreateHapticEffect's id, SDL_RunHapticEffect's result and SDL's
error text per device; gameinput_test asserts the success and the refusal.

AI-assisted
2026-11-22 23:15:09 +01:00
59aa22ff0c gameinput: drive a constant force from gameinput_probe (RT-160)
`--force-feedback` creates a constant effect at magnitude 1.0 on motor 0 and
holds it for a second, so the wheel owner the RT-160 finding asks for can feel
the magnitude and the axis instead of only reading `forcefeedback=`; a pad with
no force-feedback motor is skipped with the reason printed. Docs and the probe
comment name the flag.

AI-assisted
2026-11-22 23:03:41 +01:00
1b227ae455 Merge pull request #3699 from B0D0PAD
# Conflicts:
#	docs/gameinput.md
2026-11-22 17:03:29 -05:00
793e35af55 Merge pull request #3685 from ICUMADETHIS 2026-11-22 17:03:25 -05:00
5fd0db925d Merge pull request #2420 from Sc4ros 2026-11-22 16:59:14 -05:00
f4e50d6cf2 PROC-185: drop the duplicate GameInput API rows
docs/gameinput.md listed IGameInputDevice and IGameInputDispatcher twice with contradicting cells. Keep the rows that match runtime/shims/gameinput.cpp: force feedback and haptic motors are implemented, and Dispatch runs its quota; drop the stale duplicates.
2026-11-23 02:23:32 +05:00
1fc162f4ba gameinput: track which kind of device the player used last
The shim tells the title every pad is an Xbox One pad, so nothing could
say what the player is really holding. rt::gameinput::active_input()
now returns the family of the device used last (Xbox, PlayStation 5,
PlayStation 4, PlayStation 3, Nintendo, or the keyboard pad), a
generation that counts changes, and whether LEONIDA_PROMPTS forced it.
It is groundwork for button prompts that follow the device in use.

Only deliberate input counts: a button going down, a trigger past 0.3
or a stick leaving a 0.35 radius. Held input, stick drift and noise do
not; a pad's first reading after it connects is its baseline; and
after a change the next one waits LEONIDA_PROMPTS_SWITCH_MS (300 ms).
The rules live in runtime/src/active_input.h with no SDL, tested by
active_input_test; gameinput_test drives them on SDL virtual pads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:17:56 +00:00
a41173a1ae Tests: gameinput_host fails instead of skipping when GameInput.dll is present (review)
- gameinput_host_test decides the skip before mapping: LoadLibraryExW of GameInput.dll from System32. Only "not found"
  skips (77); an import that then binds to nothing is a failure. Breaking host ordinal binding in Loader::resolve now
  fails the test (4 failures) instead of skipping.
- The gameinput_host fixture links in Debug: /RTC1 with /NODEFAULTLIB left _RTC_InitBase, _RTC_Shutdown and
  _RTC_CheckStackVars unresolved, so the fixture defines them as no-ops when runtime checks are on.
- The fixture reports E_FAIL, not S_OK, when GameInputCreate fails, and the test counts a gamepad as attached only when
  the library was created.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 22:15:41 +01:00
dac28e6b19 Fix what the round-42 merges broke (tests and docs)
- shader_disasm: prune stale listings against every input, not the --skip-existing remainder (a resumed run
  deleted every listing it had just reused).
- progress_dashboard: a drive-letter path is never inside the repository off Windows (it printed user names);
  its own read_text helper is read_utf8, so the encoding check does not take it for pathlib's.
- Translator tests follow this round's rules: desc_lookup's BroadcastFirst in the typed-load condition walker;
  resinfo sizes are 0 past the last level and a 2D depth word is 0 (SHADER-388); SHADER-315 constant folding in
  the perm and i16 tests; #2089's structured wave64 emulation.
- test_semantic_translator_use: 57 oracle-only files merged before it are DEBT; test_spirv_tools_required is
  allowed (CI meta-test).
- Test fixes: image_fuzz fake writes the programs, preflight follows c506d00c's loader hint rule, feature_scan
  reads the first line of a pytest-decorated message, w64_graphics wording.
- docs: rows merged again in design.md, README.md, d3d12_vulkan.md; GameInput table rebuilt from #3172's rows;
  orphan rows in models.md and embedded_shaders.md; repeated bullets; anchors; a flag not on main.
- Repo rules: stdout guard on 14 programs; LF writes; csv lineterminator in bink_play.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:14:54 -05:00
37e6d48286 Tests: the host GameInput.dll path from mapped code
docs/gameinput.md says that without the SDL3 shim the loader binds
GameInputCreate to the host's GameInput.dll, but nothing tested it.
gameinput_host_test maps a CRT-free fixture DLL built against the SDK's
gameinput.lib and checks that the import binds to the host copy (the test links
no shim table), that GameInputCreate and GetCurrentTimestamp work from mapped
code, that GetCurrentReading answers, and, with a pad attached, that
GetGamepadState succeeds. It skips (77) where there is no GameInput.dll, and is
only built when gameinput.lib is found.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 21:20:03 +01:00
c77e9403a3 Merge pull request #3172 from Bora Sevim
# Conflicts:
#	docs/gameinput.md
2026-11-22 15:15:26 -05:00
d14598da49 Merge pull request #2751 from justr4mzi 2026-11-22 15:11:36 -05:00
cda0da18b8 Merge pull request #2567 from marquezini 2026-11-22 15:11:09 -05:00
76d1add3da Merge origin/main into rt-175-raw-hid
Keep RT-160's force-feedback interface and tests next to the raw HID ones.
The raw HID test fakes are renamed (FakeRawHid, raw_*) so they no longer clash
with the haptic fakes. The API table gets one IGameInputDevice row with both
feature sets; the stale duplicate IGameInputDevice and IGameInputDispatcher
rows are dropped.
2026-11-22 23:05:47 +03:00
364fdcbd28 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".
2026-11-22 22:35:50 +03:00
f5907ef65a Merge main (873a952a) into the RT-176 branch 2026-11-22 16:32:48 -03:00
e7c83353c7 RT-176: Dispatch runs only the batch queued when it starts
Review follow-up. Dispatch took events one at a time from the live
queue, so readings queued during the call (by the poll thread, or by a
callback) were delivered in the same call: with an unlimited quota a busy
queue could keep the title inside Dispatch, and each erase at the front
made a drain O(n^2) under deliver_mu.

Dispatch now swaps out the batch present at entry and walks it in order;
events it leaves (quota spent) go back to the front of the queue, ahead of
newer ones. gameinput_test adds a callback that queues a reading from
inside the call: each Dispatch(UINT64_MAX) runs exactly its starting batch
and returns true (the previous version never returned). The docs say so,
and the dispatcher row's open column reads a dash instead of a blank.
2026-11-22 16:32:10 -03:00
bd05e6ac7b docs/gameinput.md: FindDeviceFromId answers aggregate devices too
Review (@ramenbellic): aggregates live in the device list FindDeviceFromId
searches, with a fixed deviceId per kind.
2026-11-22 18:44:31 +00:00
8599c9e64c Merge pull request #2567 from marquezini
# Conflicts:
#	docs/gameinput.md
2026-11-22 13:16:16 -05:00
c1543e3449 Merge pull request #2552 from Leonida local test 2026-11-22 13:16:07 -05:00
fd09647e06 docs/gameinput.md: CreateAggregateDevice is implemented
The API table still listed CreateAggregateDevice under "not implemented",
but the shim answers it (one device per kind, readings from every connected
device of that kind, callbacks filtered on it refused with E_NOTIMPL) and
gameinput_test covers it (test_aggregate_device). Move it to the implemented
column, say what is refused, and describe the behaviour under the table.
2026-11-22 18:09:41 +00:00
2aed56c6e5 RT-176: IGameInputDispatcher::Dispatch honours its quota
Dispatch ran the whole queue whatever quota it was given. It now runs
queued events oldest first, at least one per call (a quota of 0 runs
exactly one, as the GDK documents), takes no further event once the
quota has passed, and returns whether events remain. While events
remain the wait handle is signalled again, so a title that waits on it
before each call comes back for the rest.

The automatic path (no dispatcher, poll thread) still delivers the
whole queue. gameinput_test checks Dispatch(0), a 1 ms quota against a
5 ms callback, a large quota draining the queue, and an empty queue.
2026-11-22 14:31:09 -03:00
a3b1719c61 gameinput: report and drive force-feedback and haptic motors through SDL3 haptics (RT-160)
IGameInputDevice answered the force-feedback and haptic half of the API with
nothing: no motors in GameInputDeviceInfo, E_INVALIDARG from
CreateForceFeedbackEffect, false from IsForceFeedbackMotorPoweredOn, a no-op
SetForceFeedbackMotorGain and E_INVALIDARG from SetHapticMotorState. A pad SDL
opens as a haptic device now reports one force-feedback motor with the effect
kinds SDL lists, and a pad with trigger motors reports two haptic motors.

Force feedback goes to SDL_CreateHapticEffect/RunHapticEffect on the poll
thread, so title calls still never touch SDL; the eleven GameInput effect kinds
are SDL's eleven force-feedback effects. The trigger haptic motors play their
one waveform as an intensity on the existing trigger output. A pad with neither
keeps the old answers, and LEONIDA_RUMBLE=0 silences both. gameinput_test drives
all of it through a fake haptic backend, because SDL's virtual joysticks report
no haptics.

AI-assisted.
2026-11-22 18:26:28 +01:00
873a952a37 Merge pull request #2239 from itsRevela 2026-11-22 11:43:15 -05:00
b9a3cbcfc0 gameinput: GetTemporalReading stays E_NOTIMPL, as in GameInput v0 (RT-147)
Microsoft's reference page says IGameInput::GetTemporalReading "was never
implemented in v0" and returns E_NOTIMPL, and v1 removed it, so the shim's
E_NOTIMPL already matches the API the title was built against. A history
lookup would answer what no GameInput runtime does. The v0 header (NuGet
Microsoft.GameInput 0.2303.22621.3038) declares (timestamp, device,
reading), the shim's layout; the page's five-parameter form doesn't match it.

Pin the behaviour in gameinput_test (E_NOTIMPL with the reading cleared, for
past, present and current timestamps, with and without a device filter;
E_POINTER for a null output) and say so in docs/gameinput.md instead of
listing the method as a gap.
2026-11-22 10:26:34 -06:00
3ff74e8d58 gameinput: the keyboard pad's right stick reads raw mouse input and keeps the cursor in the window
GetCursorPos deltas stop at the screen edge and include pointer
acceleration. A message-only window on its own thread now registers for
raw mouse input (RIDEV_INPUTSINK) and sums the relative counts; the poll
takes the difference of that total. Absolute reports are ignored, and
GetCursorPos stays as the fallback if registration fails.

With raw input on and a window of this process in the foreground, the
cursor is clipped to that window's client area (re-applied every 100 ms),
and released on focus loss or when the pad is turned off.

LEONIDA_MOUSE_SENSITIVITY (0.1..10, default 1) scales the axis units per
count.
2026-11-22 18:09:44 +02:00
c608a65679 GameInput: motion support via SDL sensors (#660 follow-up)
Expose SDL3's gyroscope and accelerometer through the GameInput shim:

- gameinput_abi.h: GameInputMotionAccuracy, GameInputMotionInfo and
  GameInputMotionState with the v0 layouts (Microsoft's public docs),
  size asserts included.
- The shim enables both sensors when a pad with them is opened, reads
  the latest sample each poll, and reports GameInputKindMotion plus a
  GameInputMotionInfo on such pads. GetMotionState returns the state as
  signed fractions of the motionInfo maxima (2 g accel, 2000 deg/s
  gyro, the shim's choice since SDL exposes no sensor range; VERIFY).
  All-zero accel means no sample yet, so readings before the device's
  first sample carry no motion. Magnetic field and orientation stay
  zero and Unknown: SDL has no compass and nothing synthesises a
  quaternion. Pads with sensors stream a reading every ~8 ms so motion
  is not stuck at the last button event; other pads keep the old
  change-driven behaviour.
- GetCurrentReading and GetNextReading with a device filter now reject
  kinds the device does not support (READING_NOT_FOUND), matching the
  v0 docs and the device-less path, so a motion query on a plain pad
  fails instead of returning a reading without motion.
- gameinput_test: a virtual pad with SDL sensors covers kind/motionInfo
  presence, no-motion-before-first-sample, normalisation, accuracy
  values, the +-1 clamp, the cadence, and the plain-pad rejection.
  gameinput_probe prints the live accel and gyro fractions.
- docs/gameinput.md: a Motion section, the API table, and VERIFY notes
  for the chosen maxima and the unprovided members.

Tested: gameinput_test 185/185 and ctest 90/90 (RelWithDebInfo) on
Windows 11 Pro 10.0.26200; SDL3 3.4.20 via -DLEONIDA_SDL3_FETCH=ON.
Follows: #660. AI-assisted (ZCode agent).
2026-11-22 14:26:06 +01:00
851eb563b6 gameinput: keyboard pad moves and aims: WASD left stick, mouse right stick, mouse buttons LT/RT
The keyboard pad only pressed buttons, enough for menus. WASD now drives
the left stick (opposite keys cancel, diagonals on the round gate), cursor
movement the right stick (decaying back to center), and the right/left
mouse buttons the left/right triggers. Everything is released on focus
loss. A set_cursor_source seam sits beside set_keyboard_source for tests.
2026-11-22 12:49:29 +05:30