d15c12414a7520ff6973bfd046540b6b74393944
[goodguy/history.git] / cinelerra-5.1 / guicast / keys.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5  *
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.
10  *
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.
15  *
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
19  *
20  */
21
22 #ifndef KEYS_H
23 #define KEYS_H
24
25 #define XK_MeunKB 0x1008ff65
26
27 // key bindings
28 #define UP                  256
29 #define DOWN                257
30 #define LEFT                258
31 #define RIGHT               259
32 #define PGUP                260
33 #define PGDN                261
34 #define BACKSPACE           262
35 #define ESC                 263
36 #define TAB                 264
37
38 // Number pad keys
39 #define KPPLUS              265
40 #define KPMINUS             266
41 #define KPSTAR              267
42 #define KPSLASH             268
43 #define KP1                 269
44 #define KP2                 270
45 #define KP3                 271
46 #define KP4                 272
47 #define KP5                 273
48 #define KP6                 274
49 #define KP7                 275
50 #define KP8                 276
51 #define KP9                 277
52 #define KPINS               278
53 #define KPDEL               279
54 #define KPENTER             280
55 #define END                 281
56 #define HOME                282
57 #define LEFTTAB             283
58 #define DELETE              284
59
60 // ati_remote key bindings
61 //   requires some substitions in kernel module
62 //   due to deficiencies in X evdev et al.  examples:
63 //     need to know which dev created the event (duh)
64 //     keycodes > 255 are dropped
65 //     keycoodes are offset by 8 before xkb mapping
66 //     a bunch of keycodes are intercepted by windowmanger
67 // KEY_OK          = KEY_SPACE
68 // KEY_CHANNELUP   = KEY_SCROLLUP
69 // KEY_CHANNELDOWN = KEY_SCROLLDOWN
70 // KEY_PLAY        = KEY_FORWARD
71 // KEY_REWIND      = KEY_BACK
72 // KEY_FORWARD     = KEY_AGAIN
73 // - ati_remote.c, mapped in rc-ati-x10.c
74 #if 0
75         { 0x18, KEY_KPENTER },          /* "check" */
76         { 0x16, KEY_MENU },             /* "menu" */
77         { 0x02, KEY_POWER },            /* Power */
78         { 0x03, KEY_PROG1 },            /* TV */        /* was KEY_TV */
79         { 0x04, KEY_PROG2 },            /* DVD */       /* was KEY_DVD */
80         { 0x05, KEY_WWW },              /* WEB */
81         { 0x06, KEY_PROG3 },            /* "book" */    /* was KEY_BOOKMARKS */
82         { 0x07, KEY_PROG4 },            /* "hand" */    /* was KEY_EDIT */
83         { 0x1c, KEY_REPLY },            /* "timer" */   /* was KEY_COFFEE */
84         { 0x20, KEY_FRONT },            /* "max" */
85         { 0x1d, KEY_LEFT },             /* left */
86         { 0x1f, KEY_RIGHT },            /* right */
87         { 0x22, KEY_DOWN },             /* down */
88         { 0x1a, KEY_UP },               /* up */
89         { 0x1e, KEY_SPACE },            /* "OK" */      /* was KEY_OK */
90         { 0x09, KEY_VOLUMEDOWN },       /* VOL + */
91         { 0x08, KEY_VOLUMEUP },         /* VOL - */
92         { 0x0a, KEY_MUTE },             /* MUTE  */
93         { 0x0b, KEY_SCROLLUP },         /* CH + */      /* was KEY_CHANNELUP */
94         { 0x0c, KEY_SCROLLDOWN },       /* CH - */      /* was KEY_CHANNELDOWN */
95         { 0x27, KEY_RECORD },           /* ( o) red */
96         { 0x25, KEY_FORWARD },          /* ( >) */      /* was KEY_PLAY */
97         { 0x24, KEY_BACK },             /* (<<) */      /* was KEY_REWIND */
98         { 0x26, KEY_AGAIN },            /* (>>) */      /* was KEY_FORWARD */
99         { 0x28, KEY_STOP },             /* ([]) */
100         { 0x29, KEY_PAUSE },            /* ('') */
101 #endif
102 #define KPREV               284
103 #define KPMENU              285
104 #define KPTV                286
105 #define KPDVD               287
106 #define KPBOOK              288
107 #define KPHAND              289
108 #define KPTMR               290
109 #define KPMAXW              291
110 #define KPCHUP              292
111 #define KPCHDN              293
112 #define KPBACK              294
113 #define KPPLAY              295
114 #define KPFWRD              296
115 #define KPRECD              297
116 #define KPSTOP              298
117 #define KPAUSE              299
118
119 #define RETURN              13
120 #define NEWLINE             13
121
122 #endif