View Single Post
Old 02-14-2013, 09:35 PM   #21
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by h1uke View Post
in order to simulate key- or fiveway manipulator presses you have to write
a command to a /proc/keypad or /proc/fiveway special file, respectively.

The command can be one of the following:
  • send nn
  • sendshift nn
  • sendalt nn

This can be done by issuing the echo command to the linux console shell:

echo "send nn" >/proc/keypad

'nn' here is a key code according to a list below:

Code:
; Alt + Row1 

1 = 2
2 = 3
3 = 4
4 = 5
5 = 6
6 = 7
7 = 8
8 = 9
9 = 10
0 = 11

; Row1 

Q = 16
W = 17
E = 18
R = 19
T = 20
Y = 21
U = 22
I = 23
O = 24
P = 25

; Row2 

A = 30
S = 31
D = 32
F = 33
G = 34
H = 35
J = 36
K = 37
L = 38
Del = 14

; Row3 

Z = 44
X = 45
C = 46
V = 47
B = 48
N = 49
M = 50
Dot = 52
Slash = 53
Enter = 28

; Row4 

Shift = 42
Alt = 56
Space = 57
aA = 90
Sym = 94

; Edge

VPlus = 115
VMinus = 114
Home = 98
< = 109
> = 124
Menu = 139
Back = 91

; FiveWay manipulator

; 
FW_Left = 105
FW_Right = 106
FW_Up = 122
FW_Down = 123
FW_Press = 92

; Kindle3-specific keys

; Row4
k3_aA =	190
k3_Sym	= 126
k3_Home	= 102
k3_Back	= 158

; Edge, left and right 
k3_> = 191
lk3_< = 193
lk3_> = 104

; bottom edge. same codes as on DXG, but generated by dev/input/event2 
k3_VPlus = 115
k3_VMinus = 114

; FiveWay manipulator 
k3_FW_Up = 103
k3_FW_Down = 108
k3_FW_Press = 194
Super genuinely helpful. Thanks
twobob is offline   Reply With Quote