Table of Contents

Class KeyEventArgs

Namespace
BSGameLib.UI
Assembly
BSGameLib.UI.dll

The arguments for a key event: which key, and which modifier keys were held.

public class KeyEventArgs : EventArgs
Inheritance
KeyEventArgs
Inherited Members

Constructors

KeyEventArgs()

Creates arguments with no key and no modifier keys held.

public KeyEventArgs()

KeyEventArgs(Key)

Creates arguments for key, with no modifier keys held.

public KeyEventArgs(Key key)

Parameters

key Key

KeyEventArgs(Key, bool, bool, bool, bool)

Creates arguments for key with the modifier keys given.

public KeyEventArgs(Key key, bool control, bool shift, bool alt, bool caps)

Parameters

key Key
control bool
shift bool
alt bool
caps bool

Fields

Alt

Whether Alt was held.

public bool Alt

Field Value

bool

Caps

Whether Caps Lock was on.

public bool Caps

Field Value

bool

Control

Whether Control was held.

public bool Control

Field Value

bool

Key

The key that was pressed or released.

public Key Key

Field Value

Key

Shift

Whether Shift was held.

public bool Shift

Field Value

bool