ilker-aktuna / androidTV_keyboard_withRestAPI

This is a modified Android TV keyboard with a REST API which can receive certain commands from network
17 stars 1 forks source link

Is there a long press function? #7

Open Bagunda opened 8 months ago

Bagunda commented 8 months ago

Is there a long press function? The menu I need is called up by long pressing key code 82

adb shell input keyevent --longpress 82

ilker-aktuna commented 8 months ago

there is no long press function at the moment. But I can add it later. I am busy with family health issues this week. If all goes well, I can add it for you next week. Please remind me by the end of next week if I forget.

Bagunda commented 8 months ago

I remind you

ilker-aktuna commented 8 months ago

I'm still dealing with family. But I'll have a look if I can find a quick solution for you. First of all , what is the keycode 82 for ? is it the menu button ? Do you want to long press menu button ? How long should it be ? (1 sec ? 2 ?) I will also try to add it globally so it can be adapted to any keycode.

Bagunda commented 8 months ago

yes 82. 2 sec

ilker-aktuna commented 8 months ago

OK. I am now publishing version 2.6 to the store. Please try it when it is approved and released. The endpoint works like : /longpress=82 It should click and release after 2 seconds.

Bagunda commented 8 months ago

I downloaded and installed v2.6.

image

/up - work, but /longpress=82 - does not work.

image

The loading circle has been spinning for more than 10 minutes. Tried changing the port and rebooting the TV many times

Android 6, Xiaomi MiTV 4a

ilker-aktuna commented 8 months ago

Ok. I see the problem. I will fix it in the next release, probably tonight. Please wait for the next version.

Bagunda commented 8 months ago

Maybe by passing a parameter to transmit how long to hold the button? For example: /longpress=82&ms=2000 For the future

ilker-aktuna commented 8 months ago

Does the current implementation work ? Are you happy with it ?

Bagunda commented 8 months ago

v2.6? I wrote that it doesn't work

ilker-aktuna commented 8 months ago

and I wrote : Ok. I see the problem. I will fix it in the next release, probably tonight. Please wait for the next version. Did you try the new version ? (2.7)

Bagunda commented 8 months ago

MiTV 4a does not have google-services. I download the application from this site: https://apkcombo.com/ru/keyboard-with-rest-api/com.aktuna.tv.keyboard/ There is v2.6.

And in google_play v2.6 image

ilker-aktuna commented 8 months ago

well there are methods to install google services on any device with Android. And you have to install it from Google Play to benefit from new features. Version 2.7 is on store : image

Bagunda commented 8 months ago

image

Страничка /longpress=82 открывается, но, к сожалению, экранное меню не появляется :( Все остальные функции продолжают нормально работать. Перезагружать - пробовал.

The page /longpress=82 opens, but, unfortunately, the on-screen menu does not appear :( All other functions continue to work normally. Tried rebooting. After reboot it doesn't work either.

Bagunda commented 8 months ago

image

I checked again. This command adb shell input keyevent --longpress 82 actually brings up the menu

But /longpress=82 does not call