1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
/* $OpenBSD: zaurus_kbdmap.h,v 1.1 2005/01/13 23:33:37 drahn Exp $ */
/*
* Copyright (c) 2005 Dale Rahn <drahn@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#define KC(n) KS_KEYCODE(n)
static const keysym_t zkbd_keydesc_us[] = {
KC(0), KS_Control_L,
KC(2), KS_Tab,
/* KC(3), Addr, */
/* KC(4), Cal, */
/* KC(5), Mail, */
/* KC(6), Home, */
KC(8), KS_1,
KC(9), KS_2,
KC(10), KS_q,
KC(11), KS_w,
KC(12), KS_a,
KC(13), KS_z,
KC(16), KS_3,
KC(17), KS_4,
KC(18), KS_e,
KC(18), KS_e,
KC(19), KS_s,
KC(20), KS_d,
KC(21), KS_x,
/* KC(22), ^/t (right japanese) */
KC(24), KS_5,
KC(25), KS_r,
KC(26), KS_t,
KC(27), KS_f,
KC(28), KS_c,
KC(29), KS_minus,
/* KC(30), Cancel */
KC(32), KS_6,
KC(33), KS_y,
KC(34), KS_g,
KC(35), KS_v,
KC(36), KS_b,
KC(37), KS_space,
/* KC(38), ok */
KC(40), KS_7,
KC(41), KS_8,
KC(42), KS_u,
KC(43), KS_h,
KC(44), KS_n,
KC(45), KS_slash,
/* KC(46), Menu, */
KC(48), KS_9,
KC(49), KS_i,
KC(50), KS_j,
KC(51), KS_m,
KC(52), KS_question,
/* KC(54), left, */
KC(56), KS_0,
KC(57), KS_o,
KC(58), KS_k,
KC(59), KS_l,
/* KC(61), up, */
/* KC(62), down, */
KC(64), KS_BackSpace,
KC(65), KS_p,
/* KC(68), US, (left japanese) */
/* KC(70), right, */
/* KC(80), OK, (ext) */
/* KC(81), tog left, */
KC(83), KS_Return,
KC(83), KS_Shift_R,
KC(84), KS_Shift_L,
/* KC(88), cancel (ext), */
/* KC(89), tog right, */
KC(93), KS_Mode_switch /* Fn */
};
#define KBD_MAP(name, base, map) \
{ name, base, sizeof(map)/sizeof(keysym_t), map }
static const struct wscons_keydesc zkbd_keydesctab[] = {
KBD_MAP(KB_US, 0, zkbd_keydesc_us),
{0, 0, 0, 0}
};
#undef KBD_MAP
#undef KC
|