Repository navigation
Conversation
Outside a game there was no way to take a screenshot, and only MP4 could lock the handheld. Now, on any launcher screen (the home, a shelf, any menu, the in-game menu), MENU held and L1 pressed saves the screen, and MENU held and L2 pressed locks. MENU opens on its release on both handhelds now: the Pixel 2's FUNCTION always did (it is the brightness chord's too), and so does MENU in a game. The Brick's MENU opened on its press; it now goes through plat_key, as the keyboard and desk mode do. A button pressed while MENU is held is MENU's chord only when the launcher takes it (the two chords' buttons), and MENU then opens nothing; every other press under MENU goes through as before. Never START (MENU+START is Home), SELECT, the d-pad or a volume key. In a game nothing changes: MENU is Diatom's there, and the screenshot is the SELECT hotkey. - The screenshot is the frame as drawn, read back at its present before the volume bar (plat_grab_frame), 1024 x 768, written on a thread to Screenshots/ZyperOS/ZyperOS <date>.png, with the shutter and a game's "Screenshot saved" notice over the screen. - The lock is MP4's lock (src/mp4lock.h) and its panel: dark, every button blocked but the volume, SELECT+START held to unlock. - MENU > System > Hotkeys ends with Screenshot and Lock Screen (A captures MENU and a button, with the swap question) and Hold to Unlock, 1, 2, 3 or 5 s, which MP4's lock uses too. - The tutorial's MENU lesson says both as its note and lights the keys. check-menukeys presses them in desk mode; check-hotkeys holds the table.
…sson lights MENU alone menukeys_screen.c calls into main's files, so it is one of MAIN_SRC, which the checks that link the rest of src/ leave out. With L1 and L2 lit beside MENU, the tutorial's handheld turned to show the shoulders and MENU's dots went out of sight (check-tour-shots): the lesson lights MENU alone again and says the chords in its note.
A shot of a launcher screen went to Screenshots/ZyperOS, which the Screenshots group did not read: it reads each system's folder. Now shots_read reads Screenshots/ZyperOS too. Such a shot has no system, so its owner is the group itself (its lime), its name and title are ZyperOS, and the line under it says "ZyperOS · today 10:04". It sorts by its time with the others (newest first), opens whole in the viewer and X deletes it, as a game's shot. The group is read again on the shelf's next pass after the shot is written (shots_taken, as after a game), so it is there when the player goes back to the home. check-menukeys now finds it on the group, opens it and deletes it.
The Brick's evdev keys took main's d-pad and stick path, MENU's chords through plat_key for the rest; and MENU's swap question for Screenshot and Lock Screen is #479's: cq_text(CQ_HOTKEYS_SWAP) and confirm_ask_over, as a game's hotkeys ask it, with the host shot hotkeys-menu-swap.
This branch has not been deployed
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.
Outside a game there was no way to take a screenshot, and only MP4 could lock the handheld. Now, on any launcher screen (the home, a shelf, any menu, the in-game menu), MENU+L1 saves the screen and MENU+L2 locks.
How MENU works now
plat_key(src/platform.c), as the keyboard and desk mode do. This costs a tap's length before the menu opens on the Brick, the same as on the Pixel 2.The screenshot
The frame as it was drawn, read back at its present before the volume bar over it (
plat_grab_frame), 1024 x 768 on both handhelds, written on a thread toScreenshots/ZyperOS/ZyperOS 2026-11-22 10.04.31.png(renamed into place when whole). The shutter plays as it is taken, then the same notice a game's screenshot gets ("Screenshot saved", "Screenshots/ZyperOS", the picture small) shows at the foot for 1.5 s. They show on the home's Screenshots group like a game's: newest first, named ZyperOS ("ZyperOS · today 10:04"), the group's lime as their color, A opens one full screen, X deletes it. The group readsScreenshots/ZyperOSbeside the systems' folders, and is read again on the shelf's next pass after a shot is written.The lock
It is MP4's lock (src/mp4lock.h) and its panel: the screen goes dark, every button but the volume keys is blocked, a press shows how to open it, and SELECT+START held unlocks with the bar filling. It draws over the theme's ground, since no screen is under it. Auto Off still turns the handheld off.
The settings
MENU > System > Hotkeys ends with a rule, the line "Everywhere but in a game:", and three rows:
cq_text(CQ_HOTKEYS_SWAP),confirm_ask_over), as the SELECT hotkeys do: "Give MENU+L2 to Screenshot? Lock Screen has it now and moves to MENU+L1.", Cancel at the left with the cursor. Host shothotkeys-menu-swap.A game's Controls tab does not show them. They are kept in the device database as
menukeys.The tutorial
The MENU lesson gets a note, "MENU+L1 takes a screenshot, MENU+L2 locks." (with the keys as Hotkeys has them), as the shoulders ride on Move Around and Music. The handheld lights MENU alone: with L1 and L2 lit too, it turned to show the shoulders and MENU's dots went out of sight (check-tour-shots refused it).
Checked
make check(CHECK_JOBS=4), after main with One panel for every question with two answers #479 was merged in (60e216b): all 275 checks passed.check-menukeys, in desk mode on a shelf: MENU+L1 writes one 1024 x 768 PNG to Screenshots/ZyperOS and MENU let go after it leaves the shelf as it was; MENU held alone opens nothing and MENU let go alone opens the menu; MENU+L2 locks; SELECT+START held 1 s keeps it locked and held past 2 s unlocks; the shelf takes presses after; the shot is on the home's Screenshots group as ZyperOS, opens and X deletes it from the card. Run 5 times after its last change: all passed.check-hotkeysholds the table: defaults, the swap, START refused, Hold to Unlock's steps, what is kept and read back.hotkeys-menu-keys,hotkeys-menu-capture,hotkeys-menu-capture-keys,menu-locked,menu-shot-notice.To test on a device
src/device/pixel2.c and src/device/brick.c changed and I could only build them for the host. On both handhelds: MENU+L1 on the home, a shelf and inside MENU (one file each in Screenshots/ZyperOS, the notice, no menu opening); MENU alone still opens the menu as it is let go; MENU+VOL brightness and MENU+START home still work on the Pixel 2; MENU+L2 locks, SELECT+START unlocks; change Hold to Unlock and check MP4's lock follows it. On the Brick, check that MENU opening on release feels right.
Files another helper may touch
src/device/brick.c (MENU through
plat_key,plat_grab_frameat the present's start,plat_menu_forgetin the flush) and src/device/pixel2.c (the chords under FUNCTION). The Brick's present and input are also in the Brick helper's area.