[mythtv-commits] Ticket #13234: Support for Nvidia Shield Remote
MythTV
noreply at mythtv.org
Wed Mar 7 22:54:02 UTC 2018
#13234: Support for Nvidia Shield Remote
-----------------------------+-----------------------------
Reporter: pbennett | Owner: pbennett
Type: Developer Task | Status: accepted
Priority: minor | Milestone: 30.0
Component: Ports - Android | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-----------------------------+-----------------------------
Changes (by pbennett):
* status: new => accepted
Comment:
I believe I can implement the "long press". I plan to make "long press" of
the SELECT button invoke the MENU action.
Details:
* Add a setting for keys (e.g. the SELECT key) that will support "long
press". Those keys will NOT support repeat action. To set "long press" on
the arrow keys, for example, would be very bad.
* Normally the SELECT button takes effect immediately upon pressing. With
this change it will only take effect upon release.
* Use the !KeyPress and !KeyRelease events to time how long one of those
keys is held down and generate a single action upon release. Discard all
!KeyPress events for that key that are generated in the interim.
* If the button was held down for more than 1 second, generate a
!MetaModifier on the keystroke to support a long press. The !MetaModifier
is normally generated when holding the "Windows" key and pressing a
button, I am hijacking it for another purpose.
* The normal key mapping feature of !MythTV can assign an action to Meta-
Enter or other Meta keys. In particular, I will create a default entry for
Meta-Enter to generate the MENU action.
* This is not android specific so it could be used with any remote that
uses a !KeyPress and !KeyRelease event on any operating system.
* I do not know if LIRC would support this, but any remote that connects
as a keyboard would support it.
I also plan to add some entries to the menus so that all important actions
are available via menu. For example:
* Add "Info" to menus - this will bring up the info menu
* Add "Pause", "fast forward", and "bookmark" to playback menus.
* Possibly add "next menu" to menus so that you can cycle through menus.
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13234#comment:6>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list