Changeset 3908 in vbox
- Timestamp:
- Jul 27, 2007 4:48:00 PM (18 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r3802 r3908 19 19 # license agreement apply instead of the previous paragraph. 20 20 # 21 22 ifeq ($(BUILD_TARGET),linux)23 XKEYBOARD_NEW := 124 endif25 21 26 22 # include qmake project file … … 150 146 VirtualBox_SOURCES.linux = \ 151 147 src/linux/XKeyboard.cpp \ 152 src/linux/keyboard.c \ 153 src/linux/XKeyboardNew.cpp 148 src/linux/keyboard.c 154 149 155 150 VirtualBox_SOURCES.darwin = \ -
trunk/src/VBox/Frontends/VirtualBox/src/linux/XKeyboard.cpp
r2981 r3908 48 48 49 49 /* 50 * This needs to be called to initialize the WINE keyboard subsystem 51 * within our environment. 50 * This function builds a table mapping the X server's scan codes to PC 51 * keyboard scan codes. The logic of the function is that while the 52 * X server may be using a different set of scan codes (if for example 53 * it is running on a non-PC machine), the keyboard layout should be similar 54 * to a PC layout. So we look at the symbols attached to each key on the 55 * X server, find the PC layout which is closest to it and remember the 56 * mappings. 52 57 */ 53 bool initXKeyboard Safe(Display *dpy)58 bool initXKeyboard(Display *dpy) 54 59 { 55 60 // update the global display pointer … … 60 65 61 66 /* 62 * our custom X keyboard event handler with the goal to try everything 63 * possible to undo the dreaded scancode to X11 conversion. Sigh! 67 * Translate an X server scancode to a PC keyboard scancode. 64 68 */ 65 void handleXKeyEvent Safe(Display *dpy, XEvent *event, WINEKEYBOARDINFO *wineKbdInfo)69 void handleXKeyEvent(Display *dpy, XEvent *event, WINEKEYBOARDINFO *wineKbdInfo) 66 70 { 67 71 // update the global display pointer … … 71 75 } 72 76 73 int getKeysymsPerKeycode Safe()77 int getKeysymsPerKeycode() 74 78 { 75 79 return X11DRV_GetKeysymsPerKeycode();
Note:
See TracChangeset
for help on using the changeset viewer.