[Nook Touch General] Windsor1959:
Let's talk about buttons! I saw your (Renate's) post in Mobileread about buttons. I chose to post about it here because my experience shows me that most Mobileread folks aren't up for a lot of this stuff.

I'm wondering about third party reading apps using the buttons for page turns. AFAIK, this can only happen if (1) the app devs have enabled this feature or (2) there's a method to make the app interpret a button click as a tap on the screen.

Someone came up with a method for (2) a few years ago for a Boyue device using Tasker and Xposed. It worked on my Boyue and Onyx devices then. It's possible to install Xposed as a Magisk module. However, this process required Xposed Additions Pro at the time. Using a Pro app on a Nook without Google Play could be an issue. Besides, there may be another, simpler way now to accomplish the same thing.

Here's the method I used then. It was written four years ago. It would require some adaptations for our Nook. What do you think?

NOTE: This process involves rooting the Boyue T63, which may void your warranty. Do so at your own risk.

OVERVIEW: After rooting the device (necessary for this to work), we’re going to install and configure some apps which will allow us to “remap” the hardware buttons, so that pressing them will replicate what we do when we physically tap the right-hand or left-hand side of the screen, causing Logos / Verbum to flip pages!

Install the necessary software:

Root the Boyue T63 following the instructions here. As part of the process, following the instructions in the forum post, install the Google Play Store, and the Nova Launcher, but don’t install the Xposed Installer yet.

Install Tasker from the Google Play Store. It costs a few dollars.

After installing Tasker, install the Xposed Installer, using the T6x Toolkit you used in step 1. This installs the XPosed Framework and XPosed Installer.

Once you’ve installed the XPosed Installer, download version 3.4.1 of the Xposed Additions from here and install it on the T63. This program allows the XPosed Framework to remap the hardware button commands. It is an older version of the app (newer versions don’t work on the T63), so we have to side-load it to install it. To do so:

Connect the T63 by USB cable to your computer.

Copy the Xposed Additions file you downloaded to the Android --> Downloads folder.

Disconnect the T63 from the USB cable.

Open the Downloads folder on the T63, and click on the Xposed Additions APK file to install it.

Install Xposed Additions Pro from the Google Play store, available here. It costs a few dollars. We need the "Pro" add-on because we need the integration with Tasker to make this work.

Basic configuration of the apps:

We need to configure Tasker to accept commands from the XPosed Additions. To do so:

Open Tasker

Select the three dots on the upper right, then Preferences

Go the “Misc” tab

Activate the option “Allow External Access”

Press the back button to save changes

Activate the XPosed Additions:

Open XPosed Installer

Tap on the “Modules” option.

Check the Xposed Additions to activate it (NOTE: If the T63 asks you in a pop-up if it is okay to grant the program root access here or in other moments throughout this installation, you’ll need to say OK for it to work).

Reboot the T63.

Create actions in Tasker to simulate tapping on the far right, or far left of the screen

Open Tasker

Activate the “Tasks” tab if it isn’t already

Create a Left tap action:

Press the + button on the bottom center

Type the name “Left tap” and tap on the check mark to save

Press the + button in the bottom center to add a new action

Select the Action Category “Code”

Select the Code Action “Run Shell”

In the command box, type “input tap 15 700” (without the quotation marks). This is a command which will tap on the screen, 15 pixels from the far left, and 700 pixels from the top.

Check the “Use Root” option

Press back two times to save changes and return to the Tasks menu.

Create a Right tap action – Repeat the above process, with the name “Right tap”, and in the command box, type “input tap 1030 700”

Remap the hardware buttons using Xposed Additions:

Open the app “Xposed Additions”

Tap on “Buttons”

Tap on Allow External Devices. Activate “Miscellaneous” and tap OK.

Remap the right button:

Tap on “Add new Key”

A dialogue box will appear. Press the right hardware button on your T63. The words “Page Down” should appear in the dialogue box. Tap on OK.

Tap on the newly created “Page Down” key to open it

Tap on “Add new Condition”

Tap on “Screen on”

Tap on the newly created “Screen on” condition to open it.

Activate the "Click" option by checking the box on the right.

Tap on “Click” to configure what happens when you click the button

Scroll to the bottom, and choose “Tasker: Select a task from Tasker”

Tap on the “Right tap” action we had created in Tasker

If you like, configure the “Long Press” option as well by activating it, then tapping on it. I use “Recent Applications.”

Press the back button twice to return to the “Buttons” page

Remap the left button – Do the same process as for the right button, but choosing the “Left tap” task from Tasker. For the “Long Press” button, I use the “Back” button.

Optional: Add, and remap the button on the bottom of the T63 using the same process. I have it set to go to “Home” on click. “Long Press” doesn’t seem to work with this button.

Grant the new actions "root" permission - When you press the right and left hardware button for the first time after remapping them, a popup will appear, asking if you want to grant root permission. You need to grant the access for this to work.