05-16-2016, 09:43 PM | #1 |
Addict
Posts: 208
Karma: 176052
Join Date: Dec 2008
Device: PBook 902† Kindle† Nook SimpleTouch† Onyx M92† i86† M96 N96ML NotePro
|
[M96] Any way to map hardware buttons to actions?
Here is what I want. At the bottom of M96 there is a rocker switch for the volume selection. It's pretty useless to me most of the time and sits there gathering dust.
I would like to use it for turning the scribble mode in Onyx Neo Reader on/off (say, volume up) and for turning the eraser mode on/off (volume down), or whatever other function I feel the need for. I've never seen any mention of such feature on this forum before (the search doesn't show much) so it may be that this belongs to the feature request section but asking doesn't hurt. Also, I would probably not need that feature if one could customise the status bar in the software. But that's most definitely is a feature request as I can't see any way to do it. Seems like it's time to learn writing Android apps... |
06-18-2016, 05:07 AM | #2 |
Addict
Posts: 220
Karma: 704750
Join Date: Apr 2016
Device: Nook Simple Touch, Onyx Boox T68 Plus
|
I'm not sure if this is the same on the m96, but on the t68 there is a button in the status bar that you can switch to have the buttons on the right act as page turn or as volume buttons. I would suspect that this might control the behavior of the volume rocker on the m96.
More elaborate remapping of functions is trickier, and i think to have the buttons act differently in different programmes you'd need to actually implement that in the app -which would probably only work if it's open source? Some apps allow you to do some remapping of the volume buttons (ezpdf reader can use the for scrolling). Another possibility is to remap the buttons globally, but that should be handled with care as you might lose functionality (e.g. of you remap the menu button this way you lose the ability to force a refresh with long press). If you're rooted, use a file manager like es file manager to Mount the system partition as rewritable (rw) and have a look at the files in /system/usr/keylayout/. There is a file generic.kl and several others, on of which should be named something about buttons or physical buttons. If you have a look in these two files (i think the second one should be more relevant for your case), you can look for volume up and volume down and try swapping that for a different function. Make sure to have a backup of the original file in case anything goes wrong! |
Advert | |
|
06-19-2016, 05:36 PM | #3 |
Addict
Posts: 208
Karma: 176052
Join Date: Dec 2008
Device: PBook 902† Kindle† Nook SimpleTouch† Onyx M92† i86† M96 N96ML NotePro
|
Hi franzli, unfortunately the reader is not rooted but thanks for the tips. I can't root it right now but that time will come...
The sort of answer I was hoping for was that there is some Android macro app that can detect and identify the hardware key presses and assign them to custom actions like tapping and dragging. So that when I press the volume rocker it does the digging through the menus and tapping for me. I've noticed that the macro apps also require root (sigh!)... Anyway, regardless root or not if someone knows an app that can do what I want on the reader a pointer to it would be appreciated. |
06-19-2016, 08:45 PM | #4 | |
Addict
Posts: 208
Karma: 176052
Join Date: Dec 2008
Device: PBook 902† Kindle† Nook SimpleTouch† Onyx M92† i86† M96 N96ML NotePro
|
Quote:
Perhaps the best thing is to ask at the source and see what Onyx say. |
|
Tags |
buttons, mapping, onyx boox m96, onyx neo reader, volume |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[M96] Perfect cover case for M96 | kuskro | Onyx Boox | 3 | 01-30-2015 12:28 PM |
PRS-T1 PerfectViewer and hardware buttons | duelle | Sony Reader Dev Corner | 9 | 09-09-2012 06:31 AM |
Actions Interface | amfera | Library Management | 2 | 05-04-2012 09:05 AM |
Different hardware buttons please? Perhaps more inset? | Cyberman tM | Kobo Reader | 8 | 05-10-2011 04:43 AM |
Replace actions undo themselves? | Rand Brittain | Sigil | 19 | 04-26-2011 06:18 PM |