virresh / matvt

Virtual Mouse for Android TV that can be controlled via remote itself.
GNU General Public License v3.0
227 stars 36 forks source link

Refactoring Mouse Engine [enhances scrolling] #44

Open gjroots opened 2 years ago

gjroots commented 2 years ago

Hai @virresh ... about ..

1.ADB 2.scrolling

  1. some apps usese adb services to controll tv actions checkout these repo and try to implement may be it will work
    MuntashirAkon/libadb-android tytydraco/LADB // more preferable & easy it has advantage of local and remote connection

  2. some time some apps.... scrooll will treat as click action it clicks more times per sec on the app . some apps not scrolling

truefedex/tv-bro in this repo he implemented mouse cursor action in browser so that try to check out may help you for further development. scrolling is smoother & the cursor will change its colour accourding to the background colour like light & dark. may be it work for you and gives some idea..

enhancement: implement double click to scroll to easy shifting scroll to mouse some remots like larger is not easy all

just check out these repos and may get some idea .....

virresh commented 2 years ago

Thanks for the adb lib references. The first one seems fine to use, the second one has a random binary in it's source code which I'm a bit reluctant to use as I don't have access to it's source.

Also thanks for the tv-bro reference! will help with re-designing of the source code. Renaming this issue as refactoring of mouse engine

gjroots commented 2 years ago

Hai..@virreh

I am ready to help ..

virresh commented 2 years ago

Thanks @gjroots Extremely grateful for you volunteering

Would you be able to crosscheck what exactly TV Bros is doing in their system differently? I saw they're also using the gesture api, but I am not exactly sure how they've handled timers etc.

Also let me know if you're more interested in non tech portion of this issue. Testing builds is also a great way to help me since I don't have an Android TV at the moment.

gjroots commented 2 years ago

Exactly I don't know . I am also new . But sure I see

His main them is .

  1. Browser working for Android tv with tv remote
  2. Ad blocker
  3. He also designed key mapping function diff actions for diff buttons May you have Android phone search play store TVBRO app to may get some idea use landscape mode

I think he manipulate touching action with pointer but different manner

I record video ,if you want any visual intraction.

Abut testing .. send me builds I tested .

about scroll issue .. soon I send video what happens exactly

gjroots commented 2 years ago

hai .@virresh

Smart-AutoClicker

Check this repo it's concept is same as you uses accessibility . swiping has no clicking ,swipe smoothly Is also uses cast functionality . So may you can develop record screen functionality in feature