Share via


PosKeyboardBase.KeyDown Method

2/27/2008

Holds the type of the last keyboard event.

Namespace: Microsoft.PointOfService.BaseServiceObjects
Assembly: Microsoft.PointOfService.ControlBase (in microsoft.pointofservice.controlbase.dll)

Syntax

'Declaration
Protected Sub KeyDown ( _
    keyData As Integer _
)
protected void KeyDown (
    int keyData
)
protected:
void KeyDown (
    int keyData
)
protected void KeyDown (
    int keyData
)
protected function KeyDown (
    keyData : int
)

Parameters

  • keyData
    The keyData parameter contains the value of the key pressed, defined as a logical key code in the upper 16 bits and a scan code in the lower 16 bits, where the values need not match a standard PC keyboard’s values.

Remarks

The service object calls KeyDown when the user presses a key (which typically generates a hardware interrupt). The PosKeyboardBase class implementation of KeyDown increments the StatisticKeyPressedCount statistic and then queues a data event to the application.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

PosKeyboardBase Class
PosKeyboardBase Members
Microsoft.PointOfService.BaseServiceObjects Namespace
PosKeyboard.StatisticKeyPressedCount Field