Class: TKeyboardDevice

Declaration: KeyboardDevice.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

Represents the keyboard device. It handles input from the keyboard device.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Normally you would not derive from this class. Rather, you would create a new TKeyboardInputDevice & TKeyboardDevice combination which will share the event message format.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TKeyboardDevice::TKeyboardDevice

TKeyboardDevice ()

Interface Category:

API.

Purpose:

Default constructor.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

This class is not streamable.

Member Function: TKeyboardDevice::~TKeyboardDevice

virtual ~ TKeyboardDevice ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TKeyboardDevice::KeyDown

virtual void KeyDown (TVirtualKeyCode :: EVirtualKey key)

Interface Category:

API.

Purpose:

Sends a key-down event for the specified virtual key. This function should be called when the keyboard driver detects that a key has been pressed.

Calling Context:

Called by keyboard input device handlers on key down.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TKeyboardDevice::KeyUp

virtual void KeyUp (TVirtualKeyCode :: EVirtualKey key)

Interface Category:

API.

Purpose:

Sends a key-up event for the specified virtual key. This function should be called when the keyboard driver detects that a key has been released.

Calling Context:

Called by keyboard input device handlers on key up.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TKeyboardDevice::ModifierKeyDown

virtual void ModifierKeyDown (TVirtualKeyCode :: EVirtualKey key)

Interface Category:

API.

Purpose:

Sends a modifier key-down event for the specified virtual key. This function should be called when the keyboard driver detects that a modifier key has been pressed.

Calling Context:

Called by keyboard input device handlers on modifier key down.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TKeyboardDevice::ModifierKeyUp

virtual void ModifierKeyUp (TVirtualKeyCode :: EVirtualKey key)

Interface Category:

API.

Purpose:

Sends a modifier-key up event for the specified virtual key. This function should be called when the keyboard driver detects that a modifier key has been released.

Calling Context:

Called by keyboard input device handlers on modifier key up.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.