VirtualBox

Changeset 16696 in vbox for trunk


Ignore:
Timestamp:
Feb 11, 2009 8:37:42 PM (16 years ago)
Author:
vboxsync
Message:

qt/darwin: another build fix.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r16693 r16696  
    152152VirtualBox_DEFS.debug     = VBOX_CHECK_STATE # QT_FATAL_ASSERT
    153153VirtualBox_DEFS.darwin    = VBOX_GUI_USE_QIMAGE VBOX_WITHOUT_QHTTP
    154 VirtualBox_DEFS.darwin.x86= VBOX_GUI_USE_QUARTZ2D
     154VirtualBox_DEFS.darwin.x86= VBOX_GUI_USE_QUARTZ2D USE_HID_FOR_MODIFIERS
    155155VirtualBox_DEFS.freebsd   = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
    156156VirtualBox_DEFS.linux     = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
     
    550550#
    551551ifdef VBOX_WITH_TESTCASES
    552 PROGRAMS.darwin += tstDarwinKeyboard4
    553 tstDarwinKeyboard4_NAME = tstDarwinKeyboard
    554 tstDarwinKeyboard4_TEMPLATE = VBOXR3TSTEXE
    555 tstDarwinKeyboard4_INCS = include
    556 tstDarwinKeyboard4_SOURCES = \
     552PROGRAMS.darwin += tstDarwinKeyboard
     553tstDarwinKeyboard_NAME = tstDarwinKeyboard
     554tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
     555tstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS
     556tstDarwinKeyboard_INCS = include
     557tstDarwinKeyboard_SOURCES = \
    557558        src/darwin/tstDarwinKeyboard.cpp \
    558         src/darwin/DarwinKeyboard.cpp \
     559        src/darwin/DarwinKeyboard.cpp
     560tstDarwinKeyboard_SOURCES.amd64 = \
    559561        src/darwin/VBoxCocoaApplication.m
    560 tstDarwinKeyboard4_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
    561 tstDarwinKeyboard4_LIBS = \
     562tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
     563tstDarwinKeyboard_LIBS = \
    562564        $(LIB_RUNTIME)
    563565endif
  • trunk/src/VBox/Frontends/VirtualBox/src/darwin/DarwinKeyboard.cpp

    r16693 r16696  
    3434#endif
    3535
    36 #ifdef RT_ARCH_X86
    37 # define USE_HID_FOR_MODIFIERS
     36#ifdef USE_HID_FOR_MODIFIERS
    3837# include <mach/mach.h>
    3938# include <mach/mach_error.h>
     
    478477}
    479478
    480 
    481 
    482479#ifdef USE_HID_FOR_MODIFIERS
    483 
    484480
    485481/**
     
    965961#endif /* USE_HID_FOR_MODIFIERS */
    966962
    967 
    968 
    969963/**
    970964 * Left / rigth adjust the modifier mask using the current
     
    986980#ifndef USE_HID_FOR_MODIFIERS
    987981        /*
    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).
    989984         */
    990985        AssertPtr(pvCocoaEvent);
    991         VBoxCocoaApplication_printEvent("dbg-adjMods: ", pvCocoaEvent);
     986        //VBoxCocoaApplication_printEvent("dbg-adjMods: ", pvCocoaEvent);
    992987        uint32_t fAltModifiers = VBoxCocoaApplication_getEventModifierFlagsXlated(pvCocoaEvent);
    993988
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette