Search
lxdream.org :: lxdream/src/drivers/video_gtk.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/video_gtk.c
changeset 681:1755a126b109
prev677:3ee62740ff8f
next682:1ddb41179083
author nkeynes
date Sun Jun 01 00:47:45 2008 +0000 (13 years ago)
permissions -rw-r--r--
last change First cut of the Cocoa GUI implementation
file annotate diff log raw
1.1 --- a/src/drivers/video_gtk.c Thu May 29 10:50:25 2008 +0000
1.2 +++ b/src/drivers/video_gtk.c Sun Jun 01 00:47:45 2008 +0000
1.3 @@ -158,28 +158,28 @@
1.4 uint16_t video_gtk_keycode_to_dckeysym(uint16_t keycode)
1.5 {
1.6 if( keycode >= 'a' && keycode <= 'z' ) {
1.7 - return (keycode - 'a') + DCKB_A;
1.8 + return (keycode - 'a') + DCKB_a;
1.9 } else if( keycode >= '1' && keycode <= '9' ) {
1.10 return (keycode - '1') + DCKB_1;
1.11 }
1.12 switch(keycode) {
1.13 case GDK_0: return DCKB_0;
1.14 - case GDK_Return: return DCKB_ENTER;
1.15 - case GDK_Escape: return DCKB_ESCAPE;
1.16 - case GDK_BackSpace: return DCKB_BACKSPACE;
1.17 - case GDK_Tab: return DCKB_TAB;
1.18 - case GDK_space: return DCKB_SPACE;
1.19 - case GDK_minus: return DCKB_MINUS;
1.20 - case GDK_equal: return DCKB_EQUAL;
1.21 - case GDK_bracketleft: return DCKB_LBRACKET;
1.22 - case GDK_bracketright: return DCKB_RBRACKET;
1.23 - case GDK_semicolon: return DCKB_SEMICOLON;
1.24 - case GDK_apostrophe:return DCKB_QUOTE;
1.25 - case GDK_grave : return DCKB_BACKQUOTE;
1.26 - case GDK_comma: return DCKB_COMMA;
1.27 - case GDK_period: return DCKB_PERIOD;
1.28 - case GDK_slash: return DCKB_SLASH;
1.29 - case GDK_Caps_Lock: return DCKB_CAPSLOCK;
1.30 + case GDK_Return: return DCKB_Return;
1.31 + case GDK_Escape: return DCKB_Escape;
1.32 + case GDK_BackSpace: return DCKB_BackSpace;
1.33 + case GDK_Tab: return DCKB_Tab;
1.34 + case GDK_space: return DCKB_space;
1.35 + case GDK_minus: return DCKB_minus;
1.36 + case GDK_equal: return DCKB_equal;
1.37 + case GDK_bracketleft: return DCKB_bracketleft;
1.38 + case GDK_bracketright: return DCKB_bracketright;
1.39 + case GDK_semicolon: return DCKB_semicolon;
1.40 + case GDK_apostrophe:return DCKB_apostrophe;
1.41 + case GDK_grave : return DCKB_grave;
1.42 + case GDK_comma: return DCKB_comma;
1.43 + case GDK_period: return DCKB_period;
1.44 + case GDK_slash: return DCKB_slash;
1.45 + case GDK_Caps_Lock: return DCKB_Caps_Lock;
1.46 case GDK_F1: return DCKB_F1;
1.47 case GDK_F2: return DCKB_F2;
1.48 case GDK_F3: return DCKB_F3;
1.49 @@ -192,44 +192,44 @@
1.50 case GDK_F10: return DCKB_F10;
1.51 case GDK_F11: return DCKB_F11;
1.52 case GDK_F12: return DCKB_F12;
1.53 - case GDK_Scroll_Lock: return DCKB_SCROLLLOCK;
1.54 - case GDK_Pause: return DCKB_PAUSE;
1.55 - case GDK_Insert: return DCKB_INSERT;
1.56 - case GDK_Home: return DCKB_HOME;
1.57 - case GDK_Page_Up: return DCKB_PAGEUP;
1.58 - case GDK_Delete: return DCKB_DELETE;
1.59 - case GDK_End: return DCKB_END;
1.60 - case GDK_Page_Down: return DCKB_PAGEDOWN;
1.61 - case GDK_Right: return DCKB_RIGHT;
1.62 - case GDK_Left: return DCKB_LEFT;
1.63 - case GDK_Down: return DCKB_DOWN;
1.64 - case GDK_Up: return DCKB_UP;
1.65 - case GDK_Num_Lock: return DCKB_NUMLOCK;
1.66 - case GDK_KP_Divide: return DCKB_KP_SLASH;
1.67 - case GDK_KP_Multiply: return DCKB_KP_STAR;
1.68 - case GDK_KP_Subtract: return DCKB_KP_MINUS;
1.69 - case GDK_KP_Add: return DCKB_KP_PLUS;
1.70 - case GDK_KP_Enter: return DCKB_KP_ENTER;
1.71 - case GDK_KP_End: return DCKB_KP_1;
1.72 - case GDK_KP_Down: return DCKB_KP_2;
1.73 - case GDK_KP_Page_Down: return DCKB_KP_3;
1.74 - case GDK_KP_Left: return DCKB_KP_4;
1.75 - case GDK_KP_Begin: return DCKB_KP_5;
1.76 - case GDK_KP_Right: return DCKB_KP_6;
1.77 - case GDK_KP_Home: return DCKB_KP_7;
1.78 - case GDK_KP_Up: return DCKB_KP_8;
1.79 - case GDK_KP_Page_Up:return DCKB_KP_9;
1.80 - case GDK_KP_Insert: return DCKB_KP_0;
1.81 - case GDK_KP_Delete: return DCKB_KP_PERIOD;
1.82 - case GDK_backslash: return DCKB_BACKSLASH;
1.83 - case GDK_Control_L: return DCKB_CONTROL_L;
1.84 - case GDK_Shift_L: return DCKB_SHIFT_L;
1.85 - case GDK_Alt_L: return DCKB_ALT_L;
1.86 - case GDK_Meta_L: return DCKB_S1;
1.87 - case GDK_Control_R: return DCKB_CONTROL_R;
1.88 - case GDK_Shift_R: return DCKB_SHIFT_R;
1.89 - case GDK_Alt_R: return DCKB_ALT_R;
1.90 - case GDK_Meta_R: return DCKB_S2;
1.91 + case GDK_Scroll_Lock: return DCKB_Scroll_Lock;
1.92 + case GDK_Pause: return DCKB_Pause;
1.93 + case GDK_Insert: return DCKB_Insert;
1.94 + case GDK_Home: return DCKB_Home;
1.95 + case GDK_Page_Up: return DCKB_Page_Up;
1.96 + case GDK_Delete: return DCKB_Delete;
1.97 + case GDK_End: return DCKB_nd;
1.98 + case GDK_Page_Down: return DCKB_Page_Down;
1.99 + case GDK_Right: return DCKB_Right;
1.100 + case GDK_Left: return DCKB_Left;
1.101 + case GDK_Down: return DCKB_Down;
1.102 + case GDK_Up: return DCKB_Up;
1.103 + case GDK_Num_Lock: return DCKB_Num_Lock;
1.104 + case GDK_KP_Divide: return DCKB_KP_Divide;
1.105 + case GDK_KP_Multiply: return DCKB_KP_Multiply;
1.106 + case GDK_KP_Subtract: return DCKB_KP_Subtract;
1.107 + case GDK_KP_Add: return DCKB_KP_Add;
1.108 + case GDK_KP_Enter: return DCKB_KP_Enter;
1.109 + case GDK_KP_End: return DCKB_KP_End;
1.110 + case GDK_KP_Down: return DCKB_KP_Down;
1.111 + case GDK_KP_Page_Down: return DCKB_KP_Page_Down;
1.112 + case GDK_KP_Left: return DCKB_KP_Left;
1.113 + case GDK_KP_Begin: return DCKB_KP_Begin;
1.114 + case GDK_KP_Right: return DCKB_KP_Right;
1.115 + case GDK_KP_Home: return DCKB_KP_Home;
1.116 + case GDK_KP_Up: return DCKB_KP_Up;
1.117 + case GDK_KP_Page_Up:return DCKB_KP_Page_Up;
1.118 + case GDK_KP_Insert: return DCKB_KP_Insert;
1.119 + case GDK_KP_Delete: return DCKB_KP_Delete;
1.120 + case GDK_backslash: return DCKB_backslash;
1.121 + case GDK_Control_L: return DCKB_Control_L;
1.122 + case GDK_Shift_L: return DCKB_Shift_L;
1.123 + case GDK_Alt_L: return DCKB_Alt_L;
1.124 + case GDK_Meta_L: return DCKB_Meta_L;
1.125 + case GDK_Control_R: return DCKB_Control_R;
1.126 + case GDK_Shift_R: return DCKB_Shift_R;
1.127 + case GDK_Alt_R: return DCKB_Alt_R;
1.128 + case GDK_Meta_R: return DCKB_Meta_R;
1.129 }
1.130 return DCKB_NONE;
1.131 }
.