Changeset 13335 in vbox for trunk/src/VBox/Frontends/VirtualBox4
- Timestamp:
- Oct 16, 2008 11:43:16 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 38022
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/X11/keyboard-new.c
r12499 r13335 144 144 */ 145 145 static int 146 X11DRV_KEYBOARD_DetectLayout (Display *display, intmin_keycode,147 intmax_keycode)146 X11DRV_KEYBOARD_DetectLayout (Display *display, KeyCode min_keycode, 147 KeyCode max_keycode) 148 148 { 149 149 /** Counter variable for iterating through the keyboard layout tables. */ … … 159 159 char ckey[256][2]; 160 160 /** Counter variable representing a keycode */ 161 unsignedkeyc;161 KeyCode keyc; 162 162 163 163 /* Fill in our keycode to keysym mapping table. */ … … 309 309 XDisplayKeycodes(display, &min_keycode, &max_keycode); 310 310 311 /* according to the space this function is guaranteed to never return 312 * values for min_keycode < 8 and values for max_keycode > 255 */ 313 if (min_keycode < 0) 314 min_keycode = 0; 315 if (max_keycode > 255) 316 max_keycode = 255; 317 311 318 /* Detect the keyboard layout */ 312 319 kbd_layout = X11DRV_KEYBOARD_DetectLayout(display, min_keycode,
Note:
See TracChangeset
for help on using the changeset viewer.