openstf / minitouch

Minimal multitouch event producer for Android.
Other
633 stars 233 forks source link

How home、back、menu key work? #7

Closed willysys closed 6 years ago

willysys commented 7 years ago

In minitouch can parse command like 'm ', but how home、 back、menu key work? I don't find any code in minitouch.c to handle those event. Those key event only can be handled by libevdev? Thanks for your help.

sorccu commented 7 years ago

Minitouch is for touch events only. Keys are provided by STFService.apk.

On Thursday, 3 November 2016, willysys notifications@github.com wrote:

In minitouch can parse command like 'm ', but how home、 back、menu key work? I don't find any code in minitouch.c to handle those event. Those key event only can be handled by libevdev? Thanks for your help.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/openstf/minitouch/issues/7, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB-_aOLohj779knAunRYShbHYBntrD3ks5q6aOJgaJpZM4KoHxq .

willysys commented 7 years ago

Thanks for you answer. But how does STFService.apk make keys work? Does STFService.apk install in phone? Thanks for your help.

sorccu commented 7 years ago

Look at the source code and/or check how stf is using it.

You can also use 'adb shell input keyevent' if you don't care about latency too much.

On Thursday, 3 November 2016, willysys notifications@github.com wrote:

Thanks for you answer. But how does STFService.apk make keys work? Does STFService.apk install in phone? Thanks for your help.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/openstf/minitouch/issues/7#issuecomment-258097312, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB-_T86zAVQ0SWM3d47v446eMieXLHIks5q6as9gaJpZM4KoHxq .

willysys commented 7 years ago

ok ,Thank you very much.