Skip to content

Touch point markers, switchable while the compositor runs - #2

Open
wayne-tbl wants to merge 3 commits into
FuriLabs:forkyfrom
wayne-tbl:screen-capture
Open

Touch point markers, switchable while the compositor runs#2
wayne-tbl wants to merge 3 commits into
FuriLabs:forkyfrom
wayne-tbl:screen-capture

Conversation

@wayne-tbl

Copy link
Copy Markdown

Touch point markers a screen recording can show, switchable while the
compositor is running.

  • server: allow toggling debug flags at runtime — the flags are otherwise
    parsed once from PHOC_DEBUG at startup, which is no use to anything that
    wants one for a moment and off again afterwards.
  • renderer: draw touch points as discs — approximated with horizontal slices
    inside the existing render pass rather than a shader, and shrunk to a resting
    size shortly after the finger goes down, so a recording shows the tap rather
    than a static dot.
  • desktop: add a touch-points gsetting — lets a recording show what was
    pressed and put the markers away afterwards without restarting the
    compositor. Nothing appears or clears until a frame is asked for, since the
    markers are drawn from the render pass.

Pairs with the screen recorder quick setting in phosh
(FuriLabs/phosh, branch screen-capture), whose Show Touches option writes
this touch-points key. Neither breaks without the other — the option is
simply inert until phoc has the key.

3 commits, off forky. Tested on an FLX1.

The flags are otherwise parsed once from PHOC_DEBUG at startup, which is
no use to anything that wants one for a moment and off again afterwards.

Signed-off-by: wayne <wayne@furilabs.com>
Approximated with horizontal slices inside the existing render pass
rather than a shader, and shrunk to a resting size shortly after the
finger goes down so a recording shows the tap rather than a static dot.

Signed-off-by: wayne <wayne@furilabs.com>
Lets a screen recording show what was pressed and put the markers away
afterwards, without restarting the compositor. The markers are drawn from
the render pass, so nothing appears or clears until a frame is asked for.

Signed-off-by: wayne <wayne@furilabs.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