Restore gamepad-to-UI input visualization in base station web controls#85
Merged
Conversation
Copilot
AI
changed the title
[WIP] Fix gamepad inputs not showing up on website screen
Restore gamepad-to-UI input visualization in base station web controls
May 29, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Restores live visual feedback on the base-station web UI's virtual joysticks and button strip so they mirror the gamepad state already being transmitted, plus adds CSS for the new .active button state.
Changes:
- Add
syncPadVisuals()/setFromAxes()so on-screen pads echostate.lhx/lhy/rhx/rhyfrom the gamepad poll, and reset on disconnect / lock. - Add
syncButtonVisuals()to toggle.activeonbutton[data-btn]from the current button bitmask, refreshed by both gamepad and pointer paths. - Add
.activestyling fordata-btnbuttons in the top bar and settings drawer.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| LifeTrac-v25/DESIGN-CONTROLLER/base_station/web/app.js | Adds pad/button visual-sync helpers and wires them into gamepad poll, disconnect, lock, and pointer paths. |
| LifeTrac-v25/DESIGN-CONTROLLER/base_station/web/index.html | Adds CSS for .active state on virtual control buttons. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The web UI detected connected gamepads but did not reflect live axis/button input on virtual controls, leaving operators without visual feedback during gamepad operation. This change aligns virtual joystick/button visuals with the same gamepad state already driving control payloads.
Virtual joystick rendering now mirrors gamepad axes
web/app.jsto projectstate.lhx/lhy/rhx/rhyonto the left/right joystick canvases.Virtual button strip now mirrors active control bits
.activeon eachbutton[data-btn]using the current control bitmask.UI styling for active virtual control buttons
.activestyles fordata-btnbuttons inweb/index.html(top bar + settings drawer) to make pressed states visible.