| Methods Index |
Subclass: None
CKey encapsulates an s_event::_v::s_char structure. CKey is designed to be platform independent, so that the public access methods are expected to be consistent across all keyboards.
CKey object is generated by the switchboard as a wrapper of a key event, and propagated via the DoKey() methods. You may instantiate a CKey object for one of the following reasons:
Key() or DoKey() method.
|
|
|
|
static unsigned
|
itsDefaultSensitivity;
| Determines type of equality test |
xvt_event_char
|
itsEventChar;
| Internal representation of the keyboard event |
CKey();
CKey object for a NULL key event.
CKey(const CKey&);
CKey(XVT_WCHAR theKey,
BOOLEAN isShifted = FALSE,
BOOLEAN isControl = FALSE,
BOOLEAN isAlt = FALSE,
BOOLEAN isMeta = FALSE);
theKey - keyboard character entered
isShifted - the Shift key down
isControl - the Control key down
isAlt - the Alt key down
isMeta - the Meta key down
CKey(const xvt_event_char&);
CKey from an XVT E_CHAR event structure.
CKey& operator=(const CKey&);
CKey(eVirtualKey, XVT_WCHAR);
K_* values (F1, Home key, etc.) defined in the xvt_defs.h header file.
BOOLEAN operator==(const CKey&) const; BOOLEAN operator!=(const CKey&) const;
E_CHAR events.
static void SetDefaultSensitivity(unsigned theSensitivity); static unsigned GetDefaultSensitivity();
CKey::IsEqual.
BOOLEAN IsEqual(const CKey&, unsigned = GetDefaultSensitivity()) const;
SetDefaultSensitivity.
XVT_WCHAR GetChar() const; BOOLEAN IsShifted() const; BOOLEAN IsCtrl() const; BOOLEAN IsAlt() const; BOOLEAN IsMeta() const; BOOLEAN IsVirtualKey() const;
const xvt_event_char& GetKeyEventChar() const;
BOOLEAN IsCharEqualSensitive(const CKey&) const; BOOLEAN IsCharEqualInsensitive(const CKey&) const;
CKey objects based on case-sensitivity choices.