Just thought I'd post here, in case helpful to anybody...
I scanned through the a4f thread, (too much to read all), and read the README here, and see that there have been many ideas/attempts to get the built-in pointer to toggle via shortcut. Maybe I missed it, but I didn't see anyone who solidly got it working. Here's what I did that worked.
Use instructions from this main Wiki page to remap 'favorites' key via Magisk module
Install Connectbot app on device, and follow this - https://stackoverflow.com/a/21970501 - to create a local host, filling in the 'post-login automation' field with:
susettings put system keyboard_pointer_enable 1am force-stop org.connectbot
Note - I used KDEconnect clipboard sharing function, and Button Mapper app to type and enter commands, because Connectbot app doesn't really work properly with flip phone keyboard, and I got su rights from Magisk by just running 'su' in a local terminal first, not being sure if running the script would work. Also, the 'am force-stop...' command at the end is to force-disconnect the host after running it, because if it stays connected, the command won't work when you try to run it again).
Use Button Mapper, (or whatever) to assign the 'favorites' key to a shortcut, selecting Connectbot>(your host) at the shortcut pop-up screen. I did it through Nova launcher, which works well on this phone, but requires a little remote-input help, (DeskDock, et al), to set up.
Now, every time I press the 'favorites' key, the cursor shows up. Make another host, with the '1' changed to '0', and set it to a different button shortcut, to stop cursor.
Thanks for your work
Btw - I did try your vMouse v2 module, and it works, kind-of... It will function as expected some of the time, and then freeze or malfunction seemingly at random. Pressing power, or long-press activation button kills/resets it. Also, v1 works perfectly the first time activated, but if deactivated, and attempted to use again, it won't click on anything - neither the 'Ok' nor the '1' will do anything.
Just thought I'd post here, in case helpful to anybody... I scanned through the a4f thread, (too much to read all), and read the README here, and see that there have been many ideas/attempts to get the built-in pointer to toggle via shortcut. Maybe I missed it, but I didn't see anyone who solidly got it working. Here's what I did that worked.
su
settings put system keyboard_pointer_enable 1
am force-stop org.connectbot
Note - I used KDEconnect clipboard sharing function, and Button Mapper app to type and enter commands, because Connectbot app doesn't really work properly with flip phone keyboard, and I got su rights from Magisk by just running 'su' in a local terminal first, not being sure if running the script would work. Also, the 'am force-stop...' command at the end is to force-disconnect the host after running it, because if it stays connected, the command won't work when you try to run it again).Now, every time I press the 'favorites' key, the cursor shows up. Make another host, with the '1' changed to '0', and set it to a different button shortcut, to stop cursor.
Thanks for your work
Btw - I did try your vMouse v2 module, and it works, kind-of... It will function as expected some of the time, and then freeze or malfunction seemingly at random. Pressing power, or long-press activation button kills/resets it. Also, v1 works perfectly the first time activated, but if deactivated, and attempted to use again, it won't click on anything - neither the 'Ok' nor the '1' will do anything.