See Rooting new hardware FIRST if you have a nook original with a 1003* serial# or above.
Belated congratulations to [mbm] and pokey9000 for rooting the Nook Color. Check out our Nook Color portal also.
User:TimRiker has been re-despamming. New user registration disabled for a while. Need wiki help? Contact an Administrator.

Nook Simple Touch assigning hard keys

From nookDevs

Jump to: navigation, search

There are four hard keys on the Nook Simple Touch. They are normally assigned to special reader application keys of forward and backward page. They may be assigned to other functions.

The configuration file is /system/usr/keylayout/TWL4030_Keypad.kl

This file contains the scancode to keycode conversion for many keys. Only four of these entries actually do anything. The mapping for the "n" button, the power button and any USB keyboards are done in separate files.

To modify this file you will have to write enable the system directory.

At the end of this file is the configuration for the four hard keys.

ScancodeLocation
412Upper left
407Upper right
139Lower left
158Lower right

TWL4030_Keypad.kl (original)

key 407   RIGHT_NEXTPAGE
key 412   LEFT_NEXTPAGE
key 139   LEFT_PREVPAGE
key 158   RIGHT_PREVPAGE

TWL4030_Keybad.kl (modified for back & menu)

key 407   RIGHT_NEXTPAGE
key 412   LEFT_PREVPAGE
key 139   BACK
key 158   MENU
Personal tools
Navigation
Nook Classic
Nook Simple Touch
Nook Tablet
Google AdSense