virresh / matvt

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

How to un-toggle key bind #58

Open tejedamikey opened 1 year ago

tejedamikey commented 1 year ago

Okay so I have accidentally bound the “OK” button to my BENQ gv30 remote to the toggle mouse button and I can no longer select anything (only endlessly toggle) is there a key pattern I can push to reset the binding? Using a remote app doesn’t work either since it’s even recognized the app remote to have the same binding. There is also seemingly no way to use a physical mouse/keyboard to go in and undo my error.

virresh commented 1 year ago

Woops, This is a tricky one.

If you have adb access, you can uninstall the app via ADB (and clear cache) so that next time you install, boss keys would be reset. There are no bindings to undo this, because the button combos on usual remotes are pretty limited. If you have a full remote for you TV, I've implemented an override with the "INFO" button, you could use that. But I doubt that button is present on your remote (because then you wouldn't need Boss Key mechanism at all).

Also in case you want to bind the ok button, be sure to uncheck the "Will boss key toggle" checkbox.

Then you will be able to use short press ok clicks in DPAD mode and toggle b/w modes via long presss ok button.

MailYouLater commented 1 year ago

Well, the easiest answer is to move your selection to what you want, then push your center D-pad button lots of times in quick succession hoping to overload the key interception and maybe, occasionally activate its default functionality, slowly working your way to where you can change a setting that affects this.

A more extreme answer is to performed a factory reset. I'm unfamiliar with the BenQ GV30, but there should be reasonably simple instructions you can look up for factory reseting basically any Android (or Android TV) device. Then you have to set everything up from scratch again.

Other options in situations similar to this include...

boognish-rising commented 1 year ago

I know this is an almost a month old, but in case you were looking for another solution or anybody else happens to experience a similar situation, (don't feel bad I had a similar experience when I set the boss key as the select button without really thinking about the ramifications) I found that while using the remote via the Google Home app, all the keys are mapped exactly as if you were actually pressing the key on the remote itself. However, the one key difference is that going with the virtual remote app via the Home app, you have the option to use the virtual on screen keyboard on your phone. You should still be able to use the arrow keys on the remote itself and then simply use your virtual screen based keyboard's Enter/Return key to toggle whatever you're looking to toggle that can't be due to this app's configuration.

If you add a keyboard such as Unexpected Keyboard or Hacker's Keyboard (both on F-droid, Droid-ify, Aurora Store etc but might also be found here on GH) they feature arrow keys, Function keys and many (see screenshots below), actually giving you more key options than you would have with any standard 104 key keyboard (without constantly referencing the Alt + key combination and/or AltGr for keys not included as a physical key, anyway)

I hope that helps you or anyone else that might have jammed themselves up by setting the boss key in a similar manner. It was certainly a revelation for me and helped me out of a very similar bind.

Happy navigating!

FYI the first 4 screenshots are Hacker's Keyboard and the last 5 are Unexpected Keyboard

Edited to add IMO hackers keyboard is the more user friendly of the two, but unexpected keyboard is the more robust with many more key options then the former but a slightly higher learning curve. However, once you get it, it's a cakewalk (similar to the way you can long press any key on Gboard or whatever your stock Android keyboard is for an alternate key. Many keys on unexpected keyboard have a flick input option. Where are you flick in any one of four directions essentially into the corner of the given key in order to input the secondary key associated with that corner, if that makes sense... You'll see for yourself if you decide to go that route. I have both and use them both interchangeably based on the need and I'm happy I found them cuz I use them quite regularly on my phone and on the Google TV/Chromecast . But then again I also have six other keyboards not counting the two I mentioned here or Gboard or Google voice typing lol. I guess I'm a keyboard whore or more accurately, I'm an app whore but you know; it is what it is

Screenshot_20221227-072548.png Screenshot_20221227-072403.png Screenshot_20221227-072333.png Screenshot_20221227-072304.png Screenshot_20221227-072237.png Screenshot_20221227-072220.png Screenshot_20221227-072213.png Screenshot_20221227-072204.pngScreenshot_20221227-072149.png

Ragaban commented 1 year ago

Greetings, I have a Xiaomi TV Stick 4k. I did the same mistake o foverwritting my "Ok" button as the boss key and checking "Will boss key toggle". I did not set-up any other navigation devices with bluetooth. Could I connect a wired keyboard/mouse to the stick?

Ragaban commented 1 year ago

Ok here is a solution for anyone who did not install any software prior. Try to buy a "OTG Host Power Splitter Y Micro USB Male to USB Female Adapter Cable Cord" image Like this one in the image. I bought one for around 5 euros. With one of these you can power the Xiaomi mi stick and connect a keyboard to it. After connecting a keyboard you can navigate without the remote (with the arrow keys and the spacebar). You could connect a mouse but I found out that the left and right click do not work so a keyboard is more reliable.

virresh commented 1 year ago

Yep, any connector should be fine. Glad you found one that works for your case :)

Alternatively, if you have a bluetooth mouse/keyboard with simultaneous multiple connections (these can be pretty expensive though, like the logitech mx720 mouse or k850 keyboard), it might be helpful to keep one of these paired and ready to use just in case.