Skip to content

Add Gaming section for console HDMI input switching - #51

Open
ildynn wants to merge 6 commits into
nthnclrk:mainfrom
ildynn:add-gaming-section
Open

ildynn wants to merge 6 commits into
nthnclrk:mainfrom
ildynn:add-gaming-section

Conversation

@ildynn

@ildynn ildynn commented Nov 18, 2026

Copy link
Copy Markdown
  • Add GAMES data model (PS5, PS4, Xbox, Switch) with HDMI port 2
  • Add launchGame() function that switches TV input via FrameDevice.setSource
  • Add gameMark() and dockTileHtml() for rendering game tiles
  • Add homeState() game items and keyed() data-game attributes for click handling
  • Persist games config in localStorage (clean()/serialise()/initialise())

Console apps are not Tizen apps, so only the HDMI input switching is implemented.

ildynn and others added 6 commits November 18, 2026 15:52
- Add GAMES data model (PS5, PS4, Xbox, Switch) with HDMI port 2
- Add launchGame() function that switches TV input via FrameDevice.setSource
- Add gameMark() and dockTileHtml() for rendering game tiles
- Add homeState() game items and keyed() data-game attributes for click handling
- Persist games config in localStorage (clean()/serialise()/initialise())

Console apps are not Tizen apps, so only the HDMI input switching is implemented.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
next() rebuilt config from lookOf(S.c) and dropped games. On Tizen 5.5
the startup appearance pass replaced S.c via next(), leaving games
undefined, so every keypress threw in homeState. Drop the initialise()
workaround that only patched the first state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The committed Gaming feature never worked: game tiles only rendered when
present in S.c.games, which only grew on a click that could never happen,
and launchGame passed a string to setSource (which requires a number).
Even rendered, game tiles were unreachable by remote, as home navigation
is bounded to S.c.home.

Model a console as an ordinary home app carrying a numeric HDMI port.
launch() switches input via setSource when the app has a port, else
launches the app. Remote navigation, arrange, focus and labels work
unchanged. Add PS5 (HDMI 2) and inject it once into existing docks.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Rename the PS5 entry to Gaming and render a gamepad icon in the tile,
in the app's own stroke-icon style, instead of a letter monogram.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Drop the monogram border box around the controller and size it to fill
the tile, matching the brand marks' weight.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant