spaceship/controllers
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Loïc Wisniewski a43fae5e28 Let the speed fader have the click it is under
Clicking the fader did nothing on a desktop: it fired the guns instead.
Unhandled input reaches the last nodes in the tree first, and the fader's
mouse handling lived in GameController - the script on Main, the ROOT, so
it was served last of all. MouseCombatController is a child of it and marks
every left press handled to fire, so the press never arrived.

The fader asks for its own mouse events now, from the UI layer, which sits
after the combat controllers: the control the pointer is actually on gets
the press ahead of the guns behind it. The handlers themselves are the same
wrappers #118 wrote.

The test for #118 could not see any of this - it handed the event straight
to Main._unhandled_input, which is precisely the delivery the real game
never makes, so it passed against the bug it was written for. It pushes
through the viewport now, with mouse aiming on, and checks the guns stay
quiet. Confirmed it fails without the fix.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QR2Mdk42ghEpeyXPe4UFyn
2026-09-12 19:06:29 +02:00
..
AimedFleetAbilityController.gd Aim the laser by depth, and ease the aim view 2026-09-05 09:32:42 +02:00
AimedFleetAbilityController.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
BuildController.gd Let the fleet grow past twenty vessels 2026-09-12 19:06:29 +02:00
BuildController.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
DashController.gd Sharpen upgrades, mark the convoy's destination, and give the world sound 2026-09-05 12:16:17 +02:00
DashController.gd.uid Resolve pending gameplay tickets 2026-09-02 13:43:56 +02:00
FireStickController.gd Improve aim assist target stickiness 2026-09-02 17:15:12 +02:00
FireStickController.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
GameController.gd Let the speed fader have the click it is under 2026-09-12 19:06:29 +02:00
GameController.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
GasBombController.gd Garrison laser vessels and gas bombers, on a shared ability seam 2026-08-23 19:23:35 +02:00
GasBombController.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
LaserController.gd Sharpen upgrades, mark the convoy's destination, and give the world sound 2026-09-05 12:16:17 +02:00
LaserController.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
MouseCombatController.gd Resolve pending gameplay tickets 2026-09-02 13:43:56 +02:00
MouseCombatController.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00