Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save silberzwiebel/4eb810595eeb970b33eba2d501753f65 to your computer and use it in GitHub Desktop.
Save silberzwiebel/4eb810595eeb970b33eba2d501753f65 to your computer and use it in GitHub Desktop.
keycodes of inkbook prime's physical buttons
OS Release: 4.2.2
OS API Level: 17
Board: rk30sdk
Brand: inkBook
CPU_ABI: armeabi-v7a
Device: inkBook
Display: rk30sdk-eng 4.2.2 JDQ39 tyler.20160926.144841 test-keys
Fingerprint: rk30sdk/rk30sdk/rk30sdk:4.2.2/JDQ39/tyler.20160926.144841:eng/test-keys
Host: tyler
ID: JDQ39
Manufacturer: ARTATECH
Model: Prime
Product: Prime
Tags: test-keys
Type: eng
User: tyler
Bootloader: unknown
CPU_ABI2: armeabi
Hardware: rk30board
Radio: unknown
-----------------
# first press “next page”:
^ KeyUp:        action=1 code=93 repeat=0 meta=0 scancode=115 mFlags=-2147483640 label='' chars='null' number=''
# three more presses “next page”, one press corresponds to two lines, the second press comes from a different physical button with the same function (configurable in the settings)
^ KeyDown:      action=0 code=93 repeat=0 meta=0 scancode=115 mFlags=8 label='' chars='null' number=''
^ KeyUp:        action=1 code=93 repeat=0 meta=0 scancode=115 mFlags=8 label='' chars='null' number=''
^ KeyDown:      action=0 code=93 repeat=0 meta=0 scancode=104 mFlags=8 label='' chars='null' number=''
^ KeyUp:        action=1 code=93 repeat=0 meta=0 scancode=104 mFlags=8 label='' chars='null' number=''
^ KeyDown:      action=0 code=93 repeat=0 meta=0 scancode=115 mFlags=8 label='' chars='null' number=''
^ KeyUp:        action=1 code=93 repeat=0 meta=0 scancode=115 mFlags=8 label='' chars='null' number=''
-------------------------
# first press “previous page”:
^ KeyUp:        action=1 code=92 repeat=0 meta=0 scancode=114 mFlags=-2147483640 label='' chars='null' number=''
# three more presses “previous page”, one press corresponds to two lines, only one physical button pressed:
^ KeyDown:      action=0 code=92 repeat=0 meta=0 scancode=114 mFlags=8 label='' chars='null' number=''
^ KeyUp:        action=1 code=92 repeat=0 meta=0 scancode=114 mFlags=8 label='' chars='null' number=''
^ KeyDown:      action=0 code=92 repeat=0 meta=0 scancode=114 mFlags=8 label='' chars='null' number=''
^ KeyUp:        action=1 code=92 repeat=0 meta=0 scancode=114 mFlags=8 label='' chars='null' number=''
^ KeyDown:      action=0 code=92 repeat=0 meta=0 scancode=114 mFlags=8 label='' chars='null' number=''
^ KeyUp:        action=1 code=92 repeat=0 meta=0 scancode=114 mFlags=8 label='' chars='null' number=''
-------------------------
# two presses of the last physical button that at the moment has the function “turn off touch”. This function works at the moment only with ink book’s own reader app but I’d love to see this with other apps
^ KeyDown:      action=0 code=27 repeat=0 meta=0 scancode=109 mFlags=8 label='' chars='null' number=''
^ KeyUp:        action=1 code=27 repeat=0 meta=0 scancode=109 mFlags=8 label='' chars='null' number=''
^ KeyDown:      action=0 code=27 repeat=0 meta=0 scancode=109 mFlags=8 label='' chars='null' number=''
^ KeyUp:        action=1 code=27 repeat=0 meta=0 scancode=109 mFlags=8 label='' chars='null' number=''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment