4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 #define XK_MeunKB 0x1008ff65
59 // ati_remote key bindings
60 // requires some substitions in kernel module
61 // due to deficiencies in X evdev et al. examples:
62 // need to know which dev created the event (duh)
63 // keycodes > 255 are dropped
64 // keycoodes are offset by 8 before xkb mapping
65 // a bunch of keycodes are intercepted by windowmanger
67 // KEY_CHANNELUP = KEY_SCROLLUP
68 // KEY_CHANNELDOWN = KEY_SCROLLDOWN
69 // KEY_PLAY = KEY_FORWARD
70 // KEY_REWIND = KEY_BACK
71 // KEY_FORWARD = KEY_AGAIN
72 // - ati_remote.c, mapped in rc-ati-x10.c
74 { 0x18, KEY_KPENTER }, /* "check" */
75 { 0x16, KEY_MENU }, /* "menu" */
76 { 0x02, KEY_POWER }, /* Power */
77 { 0x03, KEY_PROG1 }, /* TV */ /* was KEY_TV */
78 { 0x04, KEY_PROG2 }, /* DVD */ /* was KEY_DVD */
79 { 0x05, KEY_WWW }, /* WEB */
80 { 0x06, KEY_PROG3 }, /* "book" */ /* was KEY_BOOKMARKS */
81 { 0x07, KEY_PROG4 }, /* "hand" */ /* was KEY_EDIT */
82 { 0x1c, KEY_REPLY }, /* "timer" */ /* was KEY_COFFEE */
83 { 0x20, KEY_FRONT }, /* "max" */
84 { 0x1d, KEY_LEFT }, /* left */
85 { 0x1f, KEY_RIGHT }, /* right */
86 { 0x22, KEY_DOWN }, /* down */
87 { 0x1a, KEY_UP }, /* up */
88 { 0x1e, KEY_SPACE }, /* "OK" */ /* was KEY_OK */
89 { 0x09, KEY_VOLUMEDOWN }, /* VOL + */
90 { 0x08, KEY_VOLUMEUP }, /* VOL - */
91 { 0x0a, KEY_MUTE }, /* MUTE */
92 { 0x0b, KEY_SCROLLUP }, /* CH + */ /* was KEY_CHANNELUP */
93 { 0x0c, KEY_SCROLLDOWN }, /* CH - */ /* was KEY_CHANNELDOWN */
94 { 0x27, KEY_RECORD }, /* ( o) red */
95 { 0x25, KEY_FORWARD }, /* ( >) */ /* was KEY_PLAY */
96 { 0x24, KEY_BACK }, /* (<<) */ /* was KEY_REWIND */
97 { 0x26, KEY_AGAIN }, /* (>>) */ /* was KEY_FORWARD */
98 { 0x28, KEY_STOP }, /* ([]) */
99 { 0x29, KEY_PAUSE }, /* ('') */
134 #define SKEY_MIN 0x3000000 // Shuttle speed codes
135 #define SKEY_MAX 0x3010000