Open tatteredprince opened 3 years ago
I propose to add command line arguments
--navigation-bar
and--swipe-control
which will turn on appropriate controls for a session.
Which concrete actions would they do?
AFAIK, there is no easy way to just enable/disable the navigation bar (from adb for example).
What would --swipe-control
do?
I often miss-click right mouse button
There is an option --forward-all-clicks
(so that you inject right-click instead of BACK).
--navigation-bar
will force switching to navigation bar with three classical buttons: back, home and application cycle.
--swipe-control
will force switching to gesture control. With --forward-all-clicks
it will work like charm.
I started using --forward-all-clicks
after many days of miss-clicking.
I use gesture control and think that navigation bar --forward-all-clicks
will fit perfectly.
But I don't wanna use it forever, my fingers are very good for swipes.
How hard it was to --show-touches
? It seems that two proposed command are in the same league.
I switched to navigation bar on my phone and executed:
adb shell cmd overlay enable com.android.internal.systemui.navbar.gestural
That switched on gesture navigation.
:+1: (for recent Android only I guess)
cmd
source code is here: https://android.googlesource.com/platform/frameworks/native/+/refs/heads/master/cmds/cmd/cmd.cpp
In the end, it calls this code in Java:
But all of this is just the wrapper. Instead, we should call the method expose in the AIDL of the service IOverlayManager
:
Is there any progress on this yet? If not, would you be open to a PR?
Hello,
I propose to add command line arguments
--navigation-bar
and--swipe-control
which will turn on appropriate controls for a session.As
--show-touches
works which I use.I often miss-click right mouse button and some applications are redrawn upon minimize, and theirs contexts are lost.
It's good that we have
MOD
+b
for back andMOD
+h
for home, but it would be nicer to have those switches.