upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/shims/d3d12_com.cpp
diff options
context:
space:
mode:
authorICUMADETHIS <icumadethis@gmail.com>2026-11-22 21:15:21 +0000
committerICUMADETHIS <icumadethis@gmail.com>2026-11-22 21:17:56 +0000
commit1fc162f4bab039a6de2254864b445804b782efa3 (patch)
tree9e718a96ace450b0a3442960ae519e56c2d3f105 /runtime/shims/d3d12_com.cpp
parentf847748cc76bd3777f9c070c4034eb2fc1c04e64 (diff)
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>
Diffstat (limited to 'runtime/shims/d3d12_com.cpp')
0 files changed, 0 insertions, 0 deletions