KeyEventArgs Class Reference

Key event argument. More...

List of all members.

Public Member Functions

 KeyEventArgs (KeyEvent keyEvent)
 Constructor.

Properties

TimeSpan DownTime [get, set]
 Obtains and sets the time a key was pressed.
KeyType KeyType [get, set]
 Obtains and sets the type of key.
KeyEventType KeyEventType [get, set]
 Obtains and sets the type of key event.
bool Forward [get, set]
 Obtains and sets whether to forward a key event included in a key event argument.
bool Handled [get, set]
 Obtains and sets whether an event has been processed.
bool EnabledEachFrameRepeat [get, set]
 Obtains and sets whether to enable a key repeat event for each frame.

Detailed Description

Key event argument.


Property Documentation

bool EnabledEachFrameRepeat [get, set]

Obtains and sets whether to enable a key repeat event for each frame.

When this value is set to true, KeyEventType is such that, from the next frame, the EachFrameRepeat event is distributed for each frame. This value is enabled only for the current KeyType, and the value is retained while the key is pressed, but it is reset to false when the key is released.

bool Forward [get, set]

Obtains and sets whether to forward a key event included in a key event argument.

Default value is False.