VirtualBox

Changeset 18788 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 6, 2009 4:34:16 PM (16 years ago)
Author:
vboxsync
Message:

VBoxSDL: cleanup to get X11 dependencies right

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r18751 r18788  
    208208#ifdef VBOXSDL_WITH_X11
    209209static Cursor      gpDefaultOrigX11Cursor;
     210#ifdef RT_OS_LINUX
    210211static BOOL        guseEvdevKeymap = FALSE;
     212#endif
    211213#endif
    212214static SDL_Cursor *gpCustomCursor = NULL;
     
    677679             "  --hostkey <key> {<key2>} <mod> Set the host key to the values obtained using --detecthostkey\n"
    678680             "  --termacpi               Send an ACPI power button event when closing the window\n"
    679 #if defined(RT_OS_LINUX) || defined(RT_OS_DARWIN) /** @todo UNIXISH_TAP stuff out of main and up to Config.kmk! */
     681#if defined(RT_OS_LINUX)
    680682             "  --evdevkeymap            Use evdev keycode map\n"
    681683#endif
     
    14501452            }
    14511453        }
    1452 #ifdef RT_OS_LINUX
     1454#if defined(RT_OS_LINUX) && defined(VBOXSDL_WITH_X11)
    14531455        else if (   !strcmp(argv[curArg], "--evdevkeymap")
    14541456                 || !strcmp(argv[curArg], "-evdevkeymap"))
     
    32713273        keycode -= 8;
    32723274    }
     3275#ifdef RT_OS_LINUX
    32733276    else if (keycode < 158 && guseEvdevKeymap)
    32743277    {
     
    32763279        keycode = evdev_keycode_to_pc_keycode[keycode - 97];
    32773280    }
     3281#endif
    32783282    else if (keycode < 158)
    32793283    {
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