2001-05-13 15:40:29 +04:00
|
|
|
#ifndef KEYTYPES_H
|
|
|
|
#define KEYTYPES_H
|
|
|
|
|
2001-10-06 18:13:28 +04:00
|
|
|
#include "BasicTypes.h"
|
|
|
|
|
2001-05-13 15:40:29 +04:00
|
|
|
// type to hold a key identifier
|
|
|
|
typedef UInt32 KeyID;
|
|
|
|
|
2002-04-26 21:38:01 +04:00
|
|
|
// type to hold bitmask of key modifiers (e.g. shift keys)
|
2001-05-15 01:14:25 +04:00
|
|
|
typedef UInt32 KeyModifierMask;
|
2001-05-13 15:40:29 +04:00
|
|
|
|
|
|
|
// key codes
|
|
|
|
static const KeyID kKeyNone = 0;
|
|
|
|
|
2001-05-15 01:14:25 +04:00
|
|
|
// modifier key bitmasks
|
|
|
|
static const KeyModifierMask KeyModifierShift = 0x0001;
|
|
|
|
static const KeyModifierMask KeyModifierControl = 0x0002;
|
|
|
|
static const KeyModifierMask KeyModifierAlt = 0x0004;
|
|
|
|
static const KeyModifierMask KeyModifierMeta = 0x0008;
|
|
|
|
static const KeyModifierMask KeyModifierCapsLock = 0x1000;
|
|
|
|
static const KeyModifierMask KeyModifierNumLock = 0x2000;
|
|
|
|
static const KeyModifierMask KeyModifierScrollLock = 0x4000;
|
|
|
|
|
2001-05-13 15:40:29 +04:00
|
|
|
#endif
|