diff options
| author | Cozma <65982369+Cozmaaa@users.noreply.github.com> | 2026-11-22 06:05:38 +0200 |
|---|---|---|
| committer | Cozma <65982369+Cozmaaa@users.noreply.github.com> | 2026-11-22 06:05:38 +0200 |
| commit | 5097ea041aef13bbb6b11c7f6f92dd2ee515bc53 (patch) | |
| tree | c77a10ab1d8b67175ecdf5693b0d74c70b0953d9 /runtime/src/main.cpp | |
| parent | 4a36bb19979b611f525d027f92e0fefad1626546 (diff) | |
GameInput shim: keyboard pad (LEONIDA_KEYBOARD_PAD)
The title reads gamepads only, so keys reach it as one more pad: an SDL
virtual gamepad whose buttons are pressed from GetAsyncKeyState on each
poll. It goes through open_pad/read_pad like a real controller (device
object, player slot, readings, callbacks, UI navigation) and reports no
motors.
Arrows d-pad, Enter A, Backspace B, X X, Y Y, Q/E shoulders, Esc Menu,
Tab View. Off by default; =1 reads keys only while a window of this
process is in the foreground and releases everything on focus loss,
=always ignores focus (console tools). Sticks and triggers stay at rest.
gameinput_test drives it through set_keyboard_source with fake keys and
focus: 31 new checks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions