View Single Post
Old 04-18-2011, 10:36 AM   #17
h1uke
Zealot
h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.
 
Posts: 121
Karma: 82565
Join Date: Aug 2010
Location: Maryland, USA
Device: dxg, k3w,k4nt,kpw
Quote:
Originally Posted by Robar46 View Post
Can anyone provide a list of commands that would activate different buttons?
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

Last edited by h1uke; 04-18-2011 at 10:40 AM.
h1uke is offline   Reply With Quote