PRProd / HA-Firemote

Apple TV, Amazon Fire TV, Fire streaming stick, Chromecast, NVIDIA Shield, onn., Roku, Xiaomi Mi, and Android TV remote control card for Home Assistant
GNU General Public License v3.0
385 stars 65 forks source link

[Feature Request]: Touch/Swipe Controls for D-Pad Actions #378

Open electroflame opened 2 months ago

electroflame commented 2 months ago

Is your feature request related to a problem?

I saw that something similar was closed in #281 (mainly for not being possible), however I do think this might actually be doable using touch inputs.

Feature Request

Being able to swipe for the D-Pad actions, especially on the Apple TV remotes, is really nice for controlling things coming from the real, physical remotes.

Taps are still fine, but ideally it should be optional to swipe in a direction as well -- it doesn't need to have tracking (i.e. small vs large swipes, pausing mid-swipe, etc.) but any directional swipe should probably trigger the corresponding D-Pad action, so it's easier for users to use intuitively if they're used to swiping on their regular remotes.

Additional Comments (optional)

I saw a similar request in #281, however there was no information about how that might be accomplished. Looking around, it might be possible to simulate the touch controls using touch events and manually firing the D-Pad key events.

See: https://github.com/iablon/HomeAssistant-Touchpad-Card https://github.com/usernein/tv-card/ (specifically around here: https://github.com/usernein/tv-card/blob/master/tv-card.js#L194)

These do work, they're just not as polished as Firemote. Being able to swipe would really polish up the Apple remote integration, as it'd be a pretty close 1-to-1 replication of the physical remote's behavior.

PRProd commented 2 months ago

Greetigns @electroflame!

You're right, I think it's time to take a serious look at this again. I'm also looking into button hold detection right now as well - both topics come up on a regular basis.

electroflame commented 2 months ago

@PRProd Sounds great, thanks for taking a look!

janstadt commented 2 weeks ago

Any updates around this @PRProd ? I was about to install https://github.com/Nerwyn/android-tv-card but thought i'd see if there was anything happening in firemote around touchpad.

PRProd commented 2 weeks ago

@janstadt

Sorry, not yet. I was working on getting the "hold" action figured out first, and I'm not ready to release that quite yet. I found too many ways that it won't work which has been pushing back the date for a beta release. Then I went on vacation for two weeks ~ just got back to my computer today.

I hope to first achieve success with the hold action, and then with your request, so I'd like to keep this issue open for now. I'll be sure to post any progress updates here.

-Doug