olaf neophyte and de.po updates, valgrind tweaks, delete green lady, inkscape dpi=96
[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 // Number pad keys
38 #define KPPLUS              265
39 #define KPMINUS             266
40 #define KPSTAR              267
41 #define KPSLASH             268
42 #define KP1                 269
43 #define KP2                 270
44 #define KP3                 271
45 #define KP4                 272
46 #define KP5                 273
47 #define KP6                 274
48 #define KP7                 275
49 #define KP8                 276
50 #define KP9                 277
51 #define KPINS               278
52 #define KPDEL               279
53 #define KPENTER             280
54 #define END                 281
55 #define HOME                282
56 #define LEFTTAB             283
57 #define DELETE              284
58
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
66 // KEY_OK          = KEY_SPACE
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
73 #if 0
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 },            /* ('') */
100 #endif
101 #define KPREV               284
102 #define KPMENU              285
103 #define KPTV                286
104 #define KPDVD               287
105 #define KPBOOK              288
106 #define KPHAND              289
107 #define KPTMR               290
108 #define KPMAXW              291
109 #define KPCHUP              292
110 #define KPCHDN              293
111 #define KPBACK              294
112 #define KPPLAY              295
113 #define KPFWRD              296
114 #define KPRECD              297
115 #define KPSTOP              298
116 #define KPAUSE              299
117 // function keys
118 #define KEY_F1              301
119 #define KEY_F2              302
120 #define KEY_F3              303
121 #define KEY_F4              304
122 #define KEY_F5              305
123 #define KEY_F6              306
124 #define KEY_F7              307
125 #define KEY_F8              308
126 #define KEY_F9              309
127 #define KEY_F10             310
128 #define KEY_F11             311
129 #define KEY_F12             312
130
131 #define RETURN              13
132 #define NEWLINE             13
133
134 #endif