DarwinKeyboard.h revision e64031e20c39650a7bc902a3e1aba613b9415dee
/** @file
* Common GUI Library - Darwin Keyboard routines.
*
* @todo Move this up somewhere so that the two SDL GUIs can use this code too.
*/
/*
* Copyright (C) 2006-2007 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef ___DarwinKeyboard_h___
#define ___DarwinKeyboard_h___
#include <CoreFoundation/CFBase.h>
/** Private hack for missing rightCmdKey enum. */
/** The scancode mask. */
#define VBOXKEY_SCANCODE_MASK 0x007f
/** Extended key. */
#define VBOXKEY_EXTENDED 0x0080
/** Modifier key. */
#define VBOXKEY_MODIFIER 0x0400
/** Lock key (like num lock and caps lock). */
#define VBOXKEY_LOCK 0x0800
unsigned DarwinKeycodeToSet1Scancode(unsigned uKeyCode);
void DarwinDisableGlobalHotKeys(bool fDisable);
void DarwinGrabKeyboard(bool fGlobalHotkeys);
void DarwinReleaseKeyboard(void);
#endif