Repository navigation
input: a click with no control under it is OK after D-pad navigation - #803
Conversation
… however far the pointer drifted plxnative#781 keyed the click-to-OK on the pointer being hidden. Pressing OK jiggles a Magic Remote and any motion shows the pointer again, so on the device it never fired: arrow to the ... disc, press OK, and the film paused. Keying it on travel alone is not enough either. Travel is summed since the last arrow press, and a hand holding the remote drifts past any gate: 159, 262, 384 and 600 px measured on an OLED55B7V-Z (webOS 3.9.3) between arrowing to a control and pressing OK. Over full-screen video the player never leaves D-pad mode, so the click went to the picture. So in D-pad mode on a transparent-cursor set a click is OK when travel is under DPAD_MOTION_GATE (the existing 120 px, now named) or when it lands on no control. A click on a control after real travel is still that control's. Device check, same set: arrowed to Subtitles, the Info tab and ... with the remote moving; each OK opened the focused control. Pointing at a disc and clicking it still opened that disc, and a pointer click on bare video still paused. Signed-off-by: Dimitrije Juras <[email protected]>
|
Hi @dimitrije83, I wrote #655, the transparent-cursor fix this builds on. First, sorry: we missed this. When testing #655 on my C7V (also webOS 3.9.3) we checked that the pointer hides on a D-pad press and comes back on movement, but we never pressed OK after D-pad navigation while it was hidden. Thanks for finding it and digging in. Why #781's condition never held. That part comes from #655. An idea. When testing #655, I noticed that LG's own idle hide ( Measuring displacement instead of Two cases I see in #803's rule, as I read it:
I have the same firmware, so I'm happy to test #803, or a displacement-threshold variant, on my set and post the event-log results if that would help. |
|
@GLinnik21 @dimitrije83, I tested #803 on a second webOS 3.9.3 set: LG OLED C7V (2017, M16P), nightly 0.9.0-nightly-20261018, which contains #803.
No crashes in the session. Thanks both! |
Brings the four upstream commits after the 0.9 base 0b0b220: - plxnative#831 Watchlist: a plex.tv Watchlist tab, catalog page, Detail and hold-menu controls - plxnative#803 input: a click with no control under it is OK after D-pad navigation - plxnative#832 Route: a remux declares the source frame rate in the Load - plxnative#833 tools: make test-crate works on the stable toolchain One conflict, in the rebuilt-route projection of route/decision.rs: upstream now declares `video_copy_fps(&applied.contract, p.src_fps)` where the fork had 0, and clears Dolby Vision where the fork keeps the source's declaration on an HEVC video copy. Resolved with upstream's rate line and the fork's Dolby Vision block, whose else-branch clears Dolby Vision exactly as upstream does. No other fork code sets the stream rate, so every copying remux now follows upstream's rule.
Follow-up to #781, which does not work on the device. I'm sorry: its description claimed a TV check that I had not actually done.
What was wrong with #781
#781 turns a click back into OK only while the pointer is hidden. Pressing OK jiggles a Magic Remote, and any motion shows the pointer again, so on the set the condition was never true. Arrow to the
…disc, press OK, and the film paused.Keying it on pointer travel alone isn't enough either. Travel is summed since the last arrow press, so a hand that is just holding the remote drifts past any gate. I measured 159, 262, 384 and 600 px between arrowing to a control and pressing OK. Over full-screen video the player never leaves D-pad mode, so the click went to the picture.
The rule now
In D-pad mode on a transparent-cursor set, a click is OK when either:
DPAD_MOTION_GATE(the existing 120 px, now named), orhit.top_atis empty).A click on a control after real travel still goes to that control, so pointing at a button and clicking it works as before.
Tested
On an LG OLED55B7V-Z, webOS 3.9.3, with temporary log lines that are not in this PR:
…, then pressed OK. Each click arrived after 159–384 px of drift, was turned into OK, and opened the focused control.…disc and clicking opened it.make checkpasses (16,353 tests, 0 failed), and so doescargo +nightly check --lib --no-default-features. Only webOS 3.9.3 is tested. Sets withSDL_webOSCursorVisibilityaren't affected, because the rule needs the transparent cursor.