Fix joystick fire ghost keys and independent axis arming
Filter keyboard rows grounded by joystick buttons before processing actions, preventing right fire from acting as A/D/E and undoing its release rotation. Arm X and Y independently so an uncentered vertical axis cannot block steering. Reproduce both defects in host regressions, retain ordinary CMOC input APIs, and update official project membership. Compact unchanged display data and make render profiling optional to preserve the original memory and stack bounds. Deliver QUADPSL02.DSK with fresh scores. Retire the old artifact from tracking while leaving the loaded local disk untouched. Host suites, official Release build and MC6809/512 KB keyboard/audio smoke checks pass. Actual joystick-port confirmation and the reported normal-window buzz remain pending.
This commit is contained in:
1 parent
356a7fc895
commit
2e163049d1
28 files changed
+382
-81
No files matched your search
@@ -121,3 +121,11 @@ capture contains 88,651 frames, idle captures 88,652 at 44,100 Hz. Checks pass.
|
||||
Owned runs are stopped. The normal-window buzz remains unconfirmed fixed and
|
||||
needs the new candidate retested in that same environment. Full final identity
|
||||
and preserved-score disk are in TITLE_AND_SCORING_UPDATE.md.
|
||||
|
||||
Build 02 changes keyboard/joystick logical handling, not sound APIs. Official
|
||||
build-53 MC6809/512 KB idle capture remains zero; the positive movement capture
|
||||
has both-channel peak 7936, ten changing edges and silent final 500 ms. These
|
||||
120-field captures pass the existing checker. The user-reported normal-window
|
||||
buzz was still present on build 01 and remains open pending build-02 retest;
|
||||
the differing emulator versions prevent treating effect peak changes as a
|
||||
controlled game-volume comparison. See JOYSTICK_FIX.md for the current artifact.
|
||||
+11
-4
@@ -2,12 +2,13 @@
|
||||
|
||||
Brian requested this delivery convention on November 11, 2026:
|
||||
`QUADPSLxx.DSK`, with a two-digit build number and fresh high scores for each
|
||||
new delivered build. Begin at 01. The next changed delivery is 02. This number
|
||||
new delivered build. Begin at 01. The current delivery is 02; the next changed delivery is 03. This number
|
||||
identifies the game disk, independently of the VCC Plus application build.
|
||||
|
||||
| Build | Date | Filename | Contents / validation |
|
||||
| --- | --- | --- | --- |
|
||||
| 01 | 2026-11-11 | QUADPSL01.DSK | Current title spacing, credits, scoring labels and extra standard-library mute; byte-identical to the verified clean official artifact described in TITLE_AND_SCORING_UPDATE.md |
|
||||
| 01 | 2026-11-11 | QUADPSL01.DSK | Title spacing, credits, scoring labels and extra standard-library mute; historical artifact in Git |
|
||||
| 02 | 2026-11-11 | QUADPSL02.DSK | Fix shared fire/keyboard rows and independently arm joystick axes; see JOYSTICK_FIX.md |
|
||||
|
||||
Build 01 is 161,280 bytes, SHA-256:
|
||||
`4ac171e87c51dfd99b302b9e035a91a59c030144e5ae0661a6d2dfc84ba3a63f`.
|
||||
@@ -34,9 +35,15 @@ November 11. The Git commit adding QUADPSL01.DSK records its source snapshot;
|
||||
use `git log -- QUADPSL01.DSK` to identify that commit. The game bytes were
|
||||
qualified before committing and are unchanged from the official artifact.
|
||||
|
||||
Brian also requested cleanup of obsolete builds. Build 01 is the only retained
|
||||
current game delivery. Compiled objects, generated staging files, old probe/
|
||||
At the build-01 stage, Brian requested cleanup of obsolete builds. Build 01
|
||||
was then the only retained current game delivery. Compiled objects, generated staging files, old probe/
|
||||
staging images and host test scratch were removed after verification. Personal
|
||||
score backups and the mounted disk remain untouched; ignored WAV/JSON diagnostic
|
||||
evidence is retained while the normal-window buzz is unresolved. Historical
|
||||
source and selected evidence remain in Git.
|
||||
|
||||
Build 02 is the current clean delivery. SHA-256:
|
||||
`4e3af2440a3195ee5864498e39a779362988257d8a39cfc1c413157ace287a3c`.
|
||||
The old build-01 filename was observed loaded in VCC Plus, so that local disk is
|
||||
left untouched during cleanup. Its pristine historical artifact remains in Git
|
||||
history; it is excluded from future commits to protect any personal save writes.
|
||||
@@ -4,7 +4,21 @@ The current disk contains a playable CoCo 3 game with standard CMOC sound,
|
||||
settings and disk-backed high scores. Actual 128 KB qualification remains
|
||||
pending; CoCo 2 adaptation is deferred at Brian's direction.
|
||||
|
||||
## Current numbered delivery
|
||||
## Current joystick correction — build 02
|
||||
|
||||
QUADPSL02.DSK fixes shared fire/keyboard input lines and arms joystick axes
|
||||
independently. Both reported failure patterns were reproduced in host regressions
|
||||
and pass after correction. Standard CMOC APIs are retained. Official VCC Plus
|
||||
3.6.1 (53) Release build and MC6809/512 KB keyboard/gameplay smoke checks pass;
|
||||
physical joystick testing is still pending. Details, source references and final
|
||||
identity: [JOYSTICK_FIX.md](JOYSTICK_FIX.md).
|
||||
|
||||
Clean disk SHA-256:
|
||||
`4e3af2440a3195ee5864498e39a779362988257d8a39cfc1c413157ace287a3c`.
|
||||
Code/constants end $7AF6, static data end $13F6; original stack/bounds retained.
|
||||
The normal-window buzz remains open. Old personal score disks are untouched.
|
||||
|
||||
## Earlier numbered delivery
|
||||
|
||||
Brian requested `QUADPSLxx.DSK` with a two-digit build number and fresh high
|
||||
scores. The first is **QUADPSL01.DSK**, byte-identical to the clean official
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
# Build 02 joystick correction — November 11, 2026
|
||||
|
||||
Brian reported that the right joystick could not move pieces reliably in either
|
||||
VCC Plus or on the physical CoCo 3. Pressing fire appeared to rotate a piece;
|
||||
releasing it turned the piece back. Build 01's simulated input tests had not
|
||||
covered the actual keyboard adapter or a separately uncentered vertical axis.
|
||||
|
||||
## Reproduced causes and changes
|
||||
|
||||
The public coco.h key coordinates put A, D and E on row bit 0x01. Right fire
|
||||
also grounds this shared input line. Calling isKeyPressed on that row while fire
|
||||
is down can therefore report Left, Right and clockwise rotation together.
|
||||
Releasing fire then generates the intended preferred rotation. With the default
|
||||
counterclockwise preference, those two turns cancel, matching Brian's report.
|
||||
|
||||
The keyboard adapter now calls the same standard isKeyPressed API but skips only
|
||||
rows grounded by joystick buttons. It uses the raw low nibble returned by the
|
||||
standard readJoystickButtons API, covering all four button lines, including the
|
||||
other port. Unaffected keyboard rows remain usable. Keyboard/joystick aliasing
|
||||
is filtered before logical action processing. No direct hardware accesses,
|
||||
custom driver or assembly were added. The adapter is now a separate, testable
|
||||
C module, src/platform/keyboard.c, with build/project membership updated.
|
||||
|
||||
Separately, the old neutral guard required both X and Y to center before either
|
||||
axis could work. A centered horizontal axis followed by left/right movement was
|
||||
ignored indefinitely if Y remained outside its dead zone. The new guard arms
|
||||
X and Y independently. It still requires an axis to center before accepting it,
|
||||
retains hysteresis and horizontal repeat, requires neutral before another upward
|
||||
hard drop, and keeps keyboard controls usable with a disconnected stick.
|
||||
This independent guard defect is reproduced by tests; actual ADC traces from
|
||||
Brian's physical joystick have not been captured.
|
||||
|
||||
## Shared examples and attribution
|
||||
|
||||
Pierre Sarrazin's CoCoPlanes 0.1.0 coco-planes.c (Copyright 2026 Pierre Sarrazin,
|
||||
GPL-3.0-or-later) was consulted read-only. Its separate keyboard/joystick
|
||||
controller paths, periodic sampling and active-low right/left primary-button
|
||||
masks informed the comparison. The public installed Joystick.h and coco.h API
|
||||
contracts were also read, including shared sound/analog input behavior. No
|
||||
CoCoPlanes raw-register, interrupt or assembly routines were copied or used.
|
||||
Existing standard CMOC joystick/sound APIs remain in use.
|
||||
|
||||
## Tests and memory
|
||||
|
||||
The new keyboard regression uses the actual keyboard adapter and an authored
|
||||
mock of the shared keyboard/fire input lines. With the original polling it
|
||||
fails immediately on right fire, reproducing false A/D/E actions. With the
|
||||
filter it passes: all four fire lines, an unaffected BREAK key, left/right while
|
||||
holding fire, one lasting rotation on release, both preferred rotation choices,
|
||||
and normal keyboard/menu/initials aliases. The original axis guard also failed
|
||||
the new centered-X/off-center-Y left/right test; the independent guards pass it.
|
||||
|
||||
Host ASan/UBSan rules, input, keyboard-adapter, persistence and video suites pass.
|
||||
The existing 25 scoring cases still pass, including actual piece drops. Palette
|
||||
and font pixels are unchanged. All caption scene/column/row/label values were
|
||||
checked against build 01 after packing scene+column into one byte.
|
||||
|
||||
To retain the existing memory contract, unchanged caption coordinates are packed,
|
||||
the 11 palette bytes and 15 preference-validation limits live in low static data,
|
||||
and optional video_worst_ticks instrumentation is compiled only with
|
||||
QUAD_PROFILE. That instrumentation is absent/unavailable in Release, rather than
|
||||
reporting zero timing as a measurement. Profile builds still must pass the same
|
||||
memory guard; they are not qualified by this release. Menu/game rendering and
|
||||
all original bounds remain intact.
|
||||
|
||||
Release code/constants end $7AF6; static data end $13F6. Ten bytes remain before
|
||||
each enforced limit. The 1,024-byte stack reserve is unchanged. No extra RAM is
|
||||
required by design; actual 128 KB qualification remains pending.
|
||||
|
||||
## Official build and guest checks
|
||||
|
||||
Brian explicitly approved installed VCC Plus 3.6.1 (53) for the joystick checks
|
||||
and granted an idle desktop window. The official project refresh reviewed the
|
||||
new adapter, fixtures and Make/settings changes.
|
||||
|
||||
- Base revision: 356a7fc, main, plus this correction.
|
||||
- Project: 7D6E1D9C-DF7C-4B15-B64D-6B30732417CB, revision 2.
|
||||
- Release build: 9CFA6AC6-F75A-4515-9029-69129FEF3DD2; zero diagnostics.
|
||||
- Artifact: C5E785C7-F0D2-407B-A626-D0FF3F9BCC22.
|
||||
- QUAD.bin: 26,608 bytes, SHA-256
|
||||
`f7e0aacb35782f6bbb8ccab1761b196b02afa4120ea496277c5a14dc478856db`.
|
||||
- QUADPSL02.DSK: 161,280 bytes, SHA-256
|
||||
`4e3af2440a3195ee5864498e39a779362988257d8a39cfc1c413157ace287a3c`.
|
||||
Local delivery bytes match the official clean artifact. No QPSAVE data is
|
||||
present; build 02 starts with defaults and an empty scoreboard.
|
||||
- Owned MC6809/512 KB run: 4F2B442F-433B-4F30-8394-A6205C01FA0B, stopped.
|
||||
DOS/title and keyboard move/rotate/Hold smoke checks passed. The title layout
|
||||
and gameplay framebuffer were inspected after caption packing.
|
||||
- Direct 120-field stereo PCM captures: idle entirely zero; movement effect
|
||||
varies in both channels, peak 7936, ten changing edges, final 500 ms zero.
|
||||
These build-53 results do not establish that the reported normal-window buzz
|
||||
is fixed. The sound API usage was not changed by this correction.
|
||||
|
||||

|
||||

|
||||
|
||||
The current MCP playtest_input schema injects keys only. These guest smoke checks
|
||||
are keyboard evidence; authored host hardware models are regression evidence,
|
||||
not physical joystick-port passes. Actual right/left port testing and the reported
|
||||
normal-window buzzing remain pending user confirmation with build 02. No new
|
||||
HD6309 qualification was performed. The personal normal emulator was not reset
|
||||
or remounted; its loaded build-01 disk and personal score backups remain intact.
|
||||
|
||||
## Manual check for build 02
|
||||
|
||||
Use the right port and a fresh QUADPSL02.DSK copy. Center the stick, then hold
|
||||
left, reverse to right and return to center. A short fire press must produce
|
||||
one rotation on release that remains after the button is released. Repeat while
|
||||
steering. Hold fire 400 ms to open Actions; release must not rotate or select a
|
||||
second action. Check keyboard fallback and, separately, the left-port setting.
|
||||
If X still sticks, distinguish movement that never starts from movement that
|
||||
works once and then locks; record which system and port exhibit it.
|
||||
@@ -59,3 +59,9 @@ project connection was renewed through the supported interface. Current project
|
||||
on official build 51. get_machine_status read normal-session configuration;
|
||||
no writable disks or peripherals were removed to satisfy native-run blockers.
|
||||
The new candidate used only disposable playtests.
|
||||
|
||||
Brian approved official VCC Plus 3.6.1 (53) and an idle desktop window for the
|
||||
joystick investigation. The renewed connection verified project
|
||||
7D6E1D9C-DF7C-4B15-B64D-6B30732417CB, revision 2, built successfully and ran the
|
||||
frozen artifact. Its playtest_input schema still supports only keyboard keys,
|
||||
not analog axes/fire injection. No native joystick pass is inferred from it.
|
||||
@@ -14,8 +14,8 @@ outside live game state. No BASIC user program or prior
|
||||
low-resolution picture is preserved by launching
|
||||
this game. BASIC system RAM, text RAM and disk buffers below $0E00 remain intact.
|
||||
|
||||
The November 11 layout/scoring-label update ends code/constants at $7AF4 and static data at
|
||||
$13DE (1,502 bytes including initialized variables). The limits remain unchanged.
|
||||
The November 11 joystick update ends code/constants at $7AF6 and static data at
|
||||
$13F6 (1,526 bytes including initialized variables). The limits remain unchanged.
|
||||
The font uses 336 row bytes plus 12 punctuation codes; 198 bytes of font/packing
|
||||
data are stored in the low data region and only read by the renderer. $7B00–$7FFF is kept free for
|
||||
the foreground/ROM stack, with CMOC configured for 1,024 bytes. The split layout has passed settings and earned-score save/reload checks on
|
||||
@@ -47,3 +47,9 @@ Files longer than the schema allows are rejected and reported; the program does
|
||||
not truncate an unexpectedly oversized file. Missing/short inactive files can be
|
||||
created/extended using the documented file API. Only the two named save files
|
||||
are written. QPTEXT.DAT is read-only game data.
|
||||
|
||||
Build 02 packs each caption's scene and column into one byte, preserving all
|
||||
positions. The palette (11 bytes) and preference-validation table (15 bytes)
|
||||
use low static data; they are only read. Optional video timing instrumentation
|
||||
is enabled only by QUAD_PROFILE and is unavailable in Release. Every profile
|
||||
build still needs the unchanged link guard; profile configurations are unqualified.
|
||||
@@ -107,3 +107,10 @@ Classic (40.2) formulas. `scoring_through_drop` in tests/rules_test.c adapts the
|
||||
GPL-3.0-or-later setup in its tests/test-scoring.vala to exercise actual piece
|
||||
drops, bottom-row detection and level changes in the CoCo rules engine. No Mac
|
||||
application code was changed or bundled.
|
||||
|
||||
For the build-02 joystick correction, Pierre Sarrazin's GPL-3.0-or-later
|
||||
CoCoPlanes 0.1.0 coco-planes.c was consulted for its separate controller paths,
|
||||
periodic sampling and active-low primary-button masks. Public coco.h keyboard
|
||||
coordinates and Joystick.h contracts identify the shared input rows. No raw
|
||||
register/interrupt/assembly code was copied. The new keyboard-row fixture is
|
||||
authored for this repository; details are in JOYSTICK_FIX.md.
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
## Required installed app
|
||||
|
||||
Use `/Applications/VCC Plus.app`, **version 3.6.0, build 51**, explicitly approved by Brian
|
||||
on November 11, 2026 for reconnection and isolated build/playtest. The installed
|
||||
Use `/Applications/VCC Plus.app`, **version 3.6.1, build 53**, explicitly approved by Brian
|
||||
on November 11, 2026 for the joystick investigation, reconnection and isolated build/playtest. The installed
|
||||
Info.plist was verified. Earlier build-48 evidence remains historical.
|
||||
Verify again at implementation start.
|
||||
If the app differs, report it and wait for Brian to approve a different version.
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
Reference in new issue
Block a user