Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
electroflame opened this issue Apr 22, 2024 · 10 comments
Open

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

electroflame opened this issue Apr 22, 2024 · 10 comments
Assignees
Labels
enhancement New feature or request

Comments

@electroflame
Copy link

electroflame commented Apr 22, 2024

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.

@electroflame electroflame added the enhancement New feature or request label Apr 22, 2024
@PRProd
Copy link
Owner

PRProd commented Apr 22, 2024

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
Copy link
Author

@PRProd Sounds great, thanks for taking a look!

@janstadt
Copy link

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
Copy link
Owner

PRProd commented Jun 24, 2024

@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

@dasadavid
Copy link

Hi @PRProd,

Love your work with this integration!
I'd previously tried to mash together my own sort of setup with a background image and transparent icons which could be pressed to achieve something similar... but this is so much cleaner/more full fledged!

The only bit I'm missing is the ability to hold/long press, just wondering if there was any updates on getting this working?

Thanks again for your brilliant work :)

@PRProd
Copy link
Owner

PRProd commented Aug 5, 2024

As an update for all of you ~

The past few months have been busy, and my health hasn't been the greatest, so it's taking a lot longer to get the first "button hold" beta version ready than I wanted it to.

A great deal of the code that makes Firemote function has to be refactored, so the process is time consuming and a bit tedious. So far, I've "roughed in" 24 out of about 50 base buttons. I am making progress, it's just slow.

Thanks for your patience. I REALLY HOPE to have a beta ready soon!

-Doug

@PRProd
Copy link
Owner

PRProd commented Aug 8, 2024

Another update!

I have just published a beta Firemote version v4.0.0b1 which is the first major effort towards Firemote button long press! Please come over to discussion #477 to test it all out!

-Doug

@PRProd
Copy link
Owner

PRProd commented Aug 29, 2024

Hooray! (that took forever)

I just published official long press support in Firemote version v4.0.0! Hopefully there won't be too many issues to solve after everyone tries it out, and then I can move on to looking at this swipe thing again!

slow progress is still progress, right?

@yjamal01
Copy link

Hooray! (that took forever)

I just published official long press support in Firemote version v4.0.0! Hopefully there won't be too many issues to solve after everyone tries it out, and then I can move on to looking at this swipe thing again!

slow progress is still progress, right?

Testing on my firecube, when I press and hold it just sends multiple keypresses. (ie when I press and hold the tv responds as if I tapped over and over instead of holding)

I noticed the error "Compromised with a simulated repeat press of the button" but I don't see Firecube as the list of affected devices. Using v4.0.0

Its not a big deal for me, but I do want to help contribute with reporting/testing if I can. Cheers

@PRProd
Copy link
Owner

PRProd commented Aug 30, 2024

@yjamal01 - answered here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants