- Timestamp:
- Feb 11, 2009 8:37:42 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r16693 r16696 152 152 VirtualBox_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT 153 153 VirtualBox_DEFS.darwin = VBOX_GUI_USE_QIMAGE VBOX_WITHOUT_QHTTP 154 VirtualBox_DEFS.darwin.x86= VBOX_GUI_USE_QUARTZ2D 154 VirtualBox_DEFS.darwin.x86= VBOX_GUI_USE_QUARTZ2D USE_HID_FOR_MODIFIERS 155 155 VirtualBox_DEFS.freebsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL 156 156 VirtualBox_DEFS.linux = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL … … 550 550 # 551 551 ifdef VBOX_WITH_TESTCASES 552 PROGRAMS.darwin += tstDarwinKeyboard4 553 tstDarwinKeyboard4_NAME = tstDarwinKeyboard 554 tstDarwinKeyboard4_TEMPLATE = VBOXR3TSTEXE 555 tstDarwinKeyboard4_INCS = include 556 tstDarwinKeyboard4_SOURCES = \ 552 PROGRAMS.darwin += tstDarwinKeyboard 553 tstDarwinKeyboard_NAME = tstDarwinKeyboard 554 tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE 555 tstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS 556 tstDarwinKeyboard_INCS = include 557 tstDarwinKeyboard_SOURCES = \ 557 558 src/darwin/tstDarwinKeyboard.cpp \ 558 src/darwin/DarwinKeyboard.cpp \ 559 src/darwin/DarwinKeyboard.cpp 560 tstDarwinKeyboard_SOURCES.amd64 = \ 559 561 src/darwin/VBoxCocoaApplication.m 560 tstDarwinKeyboard 4_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit561 tstDarwinKeyboard 4_LIBS = \562 tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit 563 tstDarwinKeyboard_LIBS = \ 562 564 $(LIB_RUNTIME) 563 565 endif -
trunk/src/VBox/Frontends/VirtualBox/src/darwin/DarwinKeyboard.cpp
r16693 r16696 34 34 #endif 35 35 36 #ifdef RT_ARCH_X86 37 # define USE_HID_FOR_MODIFIERS 36 #ifdef USE_HID_FOR_MODIFIERS 38 37 # include <mach/mach.h> 39 38 # include <mach/mach_error.h> … … 478 477 } 479 478 480 481 482 479 #ifdef USE_HID_FOR_MODIFIERS 483 484 480 485 481 /** … … 965 961 #endif /* USE_HID_FOR_MODIFIERS */ 966 962 967 968 969 963 /** 970 964 * Left / rigth adjust the modifier mask using the current … … 986 980 #ifndef USE_HID_FOR_MODIFIERS 987 981 /* 988 * Convert the Cocoa modifiers to Carbon ones. 982 * Convert the Cocoa modifiers to Carbon ones (the Cocoa modifier 983 * definitions are tucked away in Objective-C headers, unfortunately). 989 984 */ 990 985 AssertPtr(pvCocoaEvent); 991 VBoxCocoaApplication_printEvent("dbg-adjMods: ", pvCocoaEvent);986 //VBoxCocoaApplication_printEvent("dbg-adjMods: ", pvCocoaEvent); 992 987 uint32_t fAltModifiers = VBoxCocoaApplication_getEventModifierFlagsXlated(pvCocoaEvent); 993 988
Note:
See TracChangeset
for help on using the changeset viewer.