Framework.SetKeyboardCallback(SetKeyboardCallback) Method (SetKeyboardCallback)

Sets the keyboard event callback function.

Definition

Visual Basic Public Sub SetKeyboardCallback( _
    ByVal callback As KeyboardCallback _
)
C# public void SetKeyboardCallback(
    KeyboardCallback callback
);
C++ public:
void SetKeyboardCallback(
    KeyboardCallbackcallback
);
JScript public function SetKeyboardCallback(
    callback : KeyboardCallback
);

Parameters

callback Microsoft.Samples.DirectX.UtilityToolkit.KeyboardCallback
The KeyboardCallback delegate the sample framework will use.

Remarks

If the callback parameter is set to null, the sample framework will not notify the application about keyboard events.

Show: