I noticed that the Khadas remote has a “mouse mode” toggle button. Based on my understanding, mouse mode is not something supported by Android by default. Is there a way to enable/disable mouse mode programmatically?
I tried this piece of code to simulate various button on the dpad, but can’t find the right key value for mouse toggle.
Instrumentation instrumentation = new Instrumentation(); instrumentation.sendKeyDownUpSync(key);
I need to enable and disable mouse mode (the mode where you can see the mouse pointer) via the apk (app) level during runtime. I can’t tell the users to modify the remote.conf file.
the 0x5c is the keyvalue read from linux, and the corresponding keycode for Android is 63
Regarding the instructions to enable/disable mouse mode, @Terry will reply you with the details. (It’s night here in Shenzhen China at the moment, you might should wait a few hours)
as i am using Libreelec i dont need the enable/disable mouse mode. Is it possible to deactivate this function, so i can use the key for another function within Libreelec?