-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
additional physical button page turn control in reader #1298
Comments
I've looked around the web briefly but haven't found much technical information (ie what's expected of an app for it to be compatible). Does it maybe work if you set the reading direction to vertical? |
dpad up/down buttons should work fine.. |
Looks like there's multiple Bluetooth rings sold as a 'TikTok scroll ring', but little to no documentation on what signals they actually send. I tried connecting a keyboard and a DualShock 4 (PS4 controller) via Bluetooth to my phone, and the arrow keys (up, down, left, right), both page up and page down keys, and each of the 4 cardinal directions on both the d-pad and left analog stick, and the triangle face button all caused Kotatsu to scroll up or down in varying amounts. I'm not certain off the top of my head which version of Android added it, but if you can, I'd recommend enabling Developer options, and looking through them to see if you can turn on "Show key presses", which will briefly show what key has been pressed on screen, then try pressing buttons on your 'scroll ring' and post back here what each button shows up as. NB: The "Show key presses" only shows what Android classifies as hardware keys, which doesn't always actually mean what it sounds like, so it's possible this won't help, but I think it's worth a try.
|
I don't seem to have a ' show key presses' option- probably because I'm using a Samsung tablet and they diverge so much from stock android. Nothing related to inputs at all in developer settings. I am using version Kotatsu 7.7.11 as well. I tried to use shizuku to get what the press was, but it wouldn't register it as a normal input event ( it 'tabbed' over in the program and selected another entry field instead). The shizuku documentation specifically says it can't handle some system inputs and specifically lists the dpad as one of them- so perhaps it's not the dpad but something adjacent? This is the ring I have, since there are so many variants (different listing but same model): https://tinyurl.com/47h934uw I was able to make a a work around by switching the mode of the ring to the media mode, where the buttons are 'play next' and ' play previous' which shizuku could then register and translate to volume up and down presses. A little kludgy and I can't listen to music while reading but it works. |
You might be able to figure out what input it's sending using one of these apps, and if you're OK with a key remapping workaround, as you've described, you may be able to use one of them to make a similar type of workaround for the other input setting so that you can more easily switch between page-turning and media-control mode, or even to set up single/double/long press mappings to not even have to switch modes. Button Mapper would probably be the easiest, if it works for you out of the box: Homepage, Google Play Key Mapper is an open source app with some more customisability out of the box: Open Source Project (GitHub), XDA thread, Google Play, F-Droid, Documentation Tasker seems to be everyone's favorite automation app for Android... and requires payment even for its basic functionality: Homepage, Google Play Automate is a free app that (at least conceptually) is similar to Tasker: Google Play Easer is basically the open source alternative to Tasker and Automate Homepage, Open Source Project (GitHub), F-Droid [Edit: I misremembered something, so I fixed it, and I also added more options.] |
Wow that is a great list! I actually used key mapper with shizuku for my work around, they have pretty seamless integration. And i am very familiar with tasker( they really make you pay now before you can even use it?? Ew!) but the rest of these I've never heard of! Thank you very much!! |
Describe your suggested feature
I use a ticktock scroll ring to flip pages in moon reader + and kindle (mobility issues). It does not work in kotatsu. I think the ring sends arrow key or dpad up/down signals. Can we please get the same functionality in Kotatsu?
Acknowledgements
The text was updated successfully, but these errors were encountered: