Search
lxdream.org :: lxdream :: r609:41b61a0d5f1a
lxdream 0.9.1
released Jun 29
Download Now
changeset609:41b61a0d5f1a
parent608:4f588e52bce0
child610:581822d225aa
authornkeynes
dateSat Jan 26 03:11:56 2008 +0000 (11 years ago)
Use GDK_* symbols rather than XK_*
src/drivers/video_gtk.c
1.1 --- a/src/drivers/video_gtk.c Sat Jan 26 02:45:27 2008 +0000
1.2 +++ b/src/drivers/video_gtk.c Sat Jan 26 03:11:56 2008 +0000
1.3 @@ -79,73 +79,73 @@
1.4 return (keycode - '1') + DCKB_1;
1.5 }
1.6 switch(keycode) {
1.7 - case XK_0: return DCKB_0;
1.8 - case XK_Return: return DCKB_ENTER;
1.9 - case XK_Escape: return DCKB_ESCAPE;
1.10 - case XK_BackSpace: return DCKB_BACKSPACE;
1.11 - case XK_Tab: return DCKB_TAB;
1.12 - case XK_space: return DCKB_SPACE;
1.13 - case XK_minus: return DCKB_MINUS;
1.14 - case XK_equal: return DCKB_EQUAL;
1.15 - case XK_bracketleft: return DCKB_LBRACKET;
1.16 - case XK_bracketright: return DCKB_RBRACKET;
1.17 - case XK_semicolon: return DCKB_SEMICOLON;
1.18 - case XK_apostrophe:return DCKB_QUOTE;
1.19 - case XK_grave : return DCKB_BACKQUOTE;
1.20 - case XK_comma: return DCKB_COMMA;
1.21 - case XK_period: return DCKB_PERIOD;
1.22 - case XK_slash: return DCKB_SLASH;
1.23 - case XK_Caps_Lock: return DCKB_CAPSLOCK;
1.24 - case XK_F1: return DCKB_F1;
1.25 - case XK_F2: return DCKB_F2;
1.26 - case XK_F3: return DCKB_F3;
1.27 - case XK_F4: return DCKB_F4;
1.28 - case XK_F5: return DCKB_F5;
1.29 - case XK_F6: return DCKB_F6;
1.30 - case XK_F7: return DCKB_F7;
1.31 - case XK_F8: return DCKB_F8;
1.32 - case XK_F9: return DCKB_F9;
1.33 - case XK_F10: return DCKB_F10;
1.34 - case XK_F11: return DCKB_F11;
1.35 - case XK_F12: return DCKB_F12;
1.36 - case XK_Scroll_Lock: return DCKB_SCROLLLOCK;
1.37 - case XK_Pause: return DCKB_PAUSE;
1.38 - case XK_Insert: return DCKB_INSERT;
1.39 - case XK_Home: return DCKB_HOME;
1.40 - case XK_Page_Up: return DCKB_PAGEUP;
1.41 - case XK_Delete: return DCKB_DELETE;
1.42 - case XK_End: return DCKB_END;
1.43 - case XK_Page_Down: return DCKB_PAGEDOWN;
1.44 - case XK_Right: return DCKB_RIGHT;
1.45 - case XK_Left: return DCKB_LEFT;
1.46 - case XK_Down: return DCKB_DOWN;
1.47 - case XK_Up: return DCKB_UP;
1.48 - case XK_Num_Lock: return DCKB_NUMLOCK;
1.49 - case XK_KP_Divide: return DCKB_KP_SLASH;
1.50 - case XK_KP_Multiply: return DCKB_KP_STAR;
1.51 - case XK_KP_Subtract: return DCKB_KP_MINUS;
1.52 - case XK_KP_Add: return DCKB_KP_PLUS;
1.53 - case XK_KP_Enter: return DCKB_KP_ENTER;
1.54 - case XK_KP_1: return DCKB_KP_1;
1.55 - case XK_KP_2: return DCKB_KP_2;
1.56 - case XK_KP_3: return DCKB_KP_3;
1.57 - case XK_KP_4: return DCKB_KP_4;
1.58 - case XK_KP_5: return DCKB_KP_5;
1.59 - case XK_KP_6: return DCKB_KP_6;
1.60 - case XK_KP_7: return DCKB_KP_7;
1.61 - case XK_KP_8: return DCKB_KP_8;
1.62 - case XK_KP_9: return DCKB_KP_9;
1.63 - case XK_KP_0: return DCKB_KP_0;
1.64 - case XK_KP_Decimal:return DCKB_KP_PERIOD;
1.65 - case XK_backslash: return DCKB_BACKSLASH;
1.66 - case XK_Control_L: return DCKB_CONTROL_L;
1.67 - case XK_Shift_L: return DCKB_SHIFT_L;
1.68 - case XK_Alt_L: return DCKB_ALT_L;
1.69 - case XK_Meta_L: return DCKB_S1;
1.70 - case XK_Control_R: return DCKB_CONTROL_R;
1.71 - case XK_Shift_R: return DCKB_SHIFT_R;
1.72 - case XK_Alt_R: return DCKB_ALT_R;
1.73 - case XK_Meta_R: return DCKB_S2;
1.74 + case GDK_0: return DCKB_0;
1.75 + case GDK_Return: return DCKB_ENTER;
1.76 + case GDK_Escape: return DCKB_ESCAPE;
1.77 + case GDK_BackSpace: return DCKB_BACKSPACE;
1.78 + case GDK_Tab: return DCKB_TAB;
1.79 + case GDK_space: return DCKB_SPACE;
1.80 + case GDK_minus: return DCKB_MINUS;
1.81 + case GDK_equal: return DCKB_EQUAL;
1.82 + case GDK_bracketleft: return DCKB_LBRACKET;
1.83 + case GDK_bracketright: return DCKB_RBRACKET;
1.84 + case GDK_semicolon: return DCKB_SEMICOLON;
1.85 + case GDK_apostrophe:return DCKB_QUOTE;
1.86 + case GDK_grave : return DCKB_BACKQUOTE;
1.87 + case GDK_comma: return DCKB_COMMA;
1.88 + case GDK_period: return DCKB_PERIOD;
1.89 + case GDK_slash: return DCKB_SLASH;
1.90 + case GDK_Caps_Lock: return DCKB_CAPSLOCK;
1.91 + case GDK_F1: return DCKB_F1;
1.92 + case GDK_F2: return DCKB_F2;
1.93 + case GDK_F3: return DCKB_F3;
1.94 + case GDK_F4: return DCKB_F4;
1.95 + case GDK_F5: return DCKB_F5;
1.96 + case GDK_F6: return DCKB_F6;
1.97 + case GDK_F7: return DCKB_F7;
1.98 + case GDK_F8: return DCKB_F8;
1.99 + case GDK_F9: return DCKB_F9;
1.100 + case GDK_F10: return DCKB_F10;
1.101 + case GDK_F11: return DCKB_F11;
1.102 + case GDK_F12: return DCKB_F12;
1.103 + case GDK_Scroll_Lock: return DCKB_SCROLLLOCK;
1.104 + case GDK_Pause: return DCKB_PAUSE;
1.105 + case GDK_Insert: return DCKB_INSERT;
1.106 + case GDK_Home: return DCKB_HOME;
1.107 + case GDK_Page_Up: return DCKB_PAGEUP;
1.108 + case GDK_Delete: return DCKB_DELETE;
1.109 + case GDK_End: return DCKB_END;
1.110 + case GDK_Page_Down: return DCKB_PAGEDOWN;
1.111 + case GDK_Right: return DCKB_RIGHT;
1.112 + case GDK_Left: return DCKB_LEFT;
1.113 + case GDK_Down: return DCKB_DOWN;
1.114 + case GDK_Up: return DCKB_UP;
1.115 + case GDK_Num_Lock: return DCKB_NUMLOCK;
1.116 + case GDK_KP_Divide: return DCKB_KP_SLASH;
1.117 + case GDK_KP_Multiply: return DCKB_KP_STAR;
1.118 + case GDK_KP_Subtract: return DCKB_KP_MINUS;
1.119 + case GDK_KP_Add: return DCKB_KP_PLUS;
1.120 + case GDK_KP_Enter: return DCKB_KP_ENTER;
1.121 + case GDK_KP_1: return DCKB_KP_1;
1.122 + case GDK_KP_2: return DCKB_KP_2;
1.123 + case GDK_KP_3: return DCKB_KP_3;
1.124 + case GDK_KP_4: return DCKB_KP_4;
1.125 + case GDK_KP_5: return DCKB_KP_5;
1.126 + case GDK_KP_6: return DCKB_KP_6;
1.127 + case GDK_KP_7: return DCKB_KP_7;
1.128 + case GDK_KP_8: return DCKB_KP_8;
1.129 + case GDK_KP_9: return DCKB_KP_9;
1.130 + case GDK_KP_0: return DCKB_KP_0;
1.131 + case GDK_KP_Decimal:return DCKB_KP_PERIOD;
1.132 + case GDK_backslash: return DCKB_BACKSLASH;
1.133 + case GDK_Control_L: return DCKB_CONTROL_L;
1.134 + case GDK_Shift_L: return DCKB_SHIFT_L;
1.135 + case GDK_Alt_L: return DCKB_ALT_L;
1.136 + case GDK_Meta_L: return DCKB_S1;
1.137 + case GDK_Control_R: return DCKB_CONTROL_R;
1.138 + case GDK_Shift_R: return DCKB_SHIFT_R;
1.139 + case GDK_Alt_R: return DCKB_ALT_R;
1.140 + case GDK_Meta_R: return DCKB_S2;
1.141 }
1.142 return DCKB_NONE;
1.143 }
.