upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/shims/gameinput_script.h
diff options
context:
space:
mode:
authorklikso <204526810+klikso@users.noreply.github.com>2026-11-26 13:09:17 +0000
committerklikso <204526810+klikso@users.noreply.github.com>2026-11-26 13:09:17 +0000
commit7bd4cec0262e3cb4268f8b8b14299bae4d47b039 (patch)
treefeb2abb78ea4b7a151758619951c4568063e7975 /runtime/shims/gameinput_script.h
parent1ce60558c72770e881a4ef458e125f587b66022e (diff)
gameinput: boot.ps1 names the :hold form; rewrap the script header comment
Review follow-up (MoonEyes): the InputScript help in boot.ps1 now says each press is held 300 ms and that button@seconds:hold holds it longer. The header comment in gameinput_script.h is wrapped at 120 like the rest of the file. Comments only; no code change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/shims/gameinput_script.h')
-rw-r--r--runtime/shims/gameinput_script.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/runtime/shims/gameinput_script.h b/runtime/shims/gameinput_script.h
index f9042a2ae..5be554424 100644
--- a/runtime/shims/gameinput_script.h
+++ b/runtime/shims/gameinput_script.h
@@ -7,10 +7,11 @@
7// 7//
8// Each entry is button@seconds[:hold], the seconds counted from the shim's first update. A press is held for `hold` 8// Each entry is button@seconds[:hold], the seconds counted from the shim's first update. A press is held for `hold`
9// seconds (kHoldSeconds when the entry has none), then released: a longer hold reaches a title that reads its pad 9// seconds (kHoldSeconds when the entry has none), then released: a longer hold reaches a title that reads its pad
10// only every few seconds, as the retail title does at world-start frame rates. Buttons: a b x y start back lb rb up down left right; rsup and rsdown throw the right stick fully up 10// only every few seconds, as the retail title does at world-start frame rates. Buttons: a b x y start back lb rb
11// or down for the same time (they replay the stick throws the press log writes). Spaces around an entry are allowed; 11// up down left right; rsup and rsdown throw the right stick fully up or down for the same time (they replay the
12// empty entries, unknown buttons, invalid times (negative, non-finite, trailing text) and invalid holds (zero, 12// stick throws the press log writes). Spaces around an entry are allowed; empty entries, unknown buttons, invalid
13// negative, non-finite, more than kMaxHoldSeconds) are counted as rejected. 13// times (negative, non-finite, trailing text) and invalid holds (zero, negative, non-finite, more than
14// kMaxHoldSeconds) are counted as rejected.
14#pragma once 15#pragma once
15#include <algorithm> 16#include <algorithm>
16#include <cctype> 17#include <cctype>