Table of Contents

Struct Key

Namespace
Lime
Assembly
Lime.dll
public struct Key
Inherited Members

Constructors

Key(int)

public Key(int code)

Parameters

code int

Fields

A

public static readonly Key A

Field Value

Key

Alt

public static readonly Key Alt

Field Value

Key

B

public static readonly Key B

Field Value

Key

Back

public static readonly Key Back

Field Value

Key

BackSlash

public static readonly Key BackSlash

Field Value

Key

BackSpace

public static readonly Key BackSpace

Field Value

Key

C

public static readonly Key C

Field Value

Key

CapsLock

public static readonly Key CapsLock

Field Value

Key

Code

public readonly int Code

Field Value

int

Comma

public static readonly Key Comma

Field Value

Key

Control

public static readonly Key Control

Field Value

Key

D

public static readonly Key D

Field Value

Key

Delete

public static readonly Key Delete

Field Value

Key

DismissSoftKeyboard

public static readonly Key DismissSoftKeyboard

Field Value

Key

Down

public static readonly Key Down

Field Value

Key

E

public static readonly Key E

Field Value

Key

End

public static readonly Key End

Field Value

Key

Enter

public static readonly Key Enter

Field Value

Key

EqualsSign

public static readonly Key EqualsSign

Field Value

Key

Escape

public static readonly Key Escape

Field Value

Key

F

public static readonly Key F

Field Value

Key

F1

public static readonly Key F1

Field Value

Key

F10

public static readonly Key F10

Field Value

Key

F11

public static readonly Key F11

Field Value

Key

F12

public static readonly Key F12

Field Value

Key

F2

public static readonly Key F2

Field Value

Key

F3

public static readonly Key F3

Field Value

Key

F4

public static readonly Key F4

Field Value

Key

F5

public static readonly Key F5

Field Value

Key

F6

public static readonly Key F6

Field Value

Key

F7

public static readonly Key F7

Field Value

Key

F8

public static readonly Key F8

Field Value

Key

F9

public static readonly Key F9

Field Value

Key

G

public static readonly Key G

Field Value

Key

H

public static readonly Key H

Field Value

Key

Home

public static readonly Key Home

Field Value

Key

I

public static readonly Key I

Field Value

Key

Insert

public static readonly Key Insert

Field Value

Key

J

public static readonly Key J

Field Value

Key

K

public static readonly Key K

Field Value

Key

Keypad0

public static readonly Key Keypad0

Field Value

Key

Keypad1

public static readonly Key Keypad1

Field Value

Key

Keypad2

public static readonly Key Keypad2

Field Value

Key

Keypad3

public static readonly Key Keypad3

Field Value

Key

Keypad4

public static readonly Key Keypad4

Field Value

Key

Keypad5

public static readonly Key Keypad5

Field Value

Key

Keypad6

public static readonly Key Keypad6

Field Value

Key

Keypad7

public static readonly Key Keypad7

Field Value

Key

Keypad8

public static readonly Key Keypad8

Field Value

Key

Keypad9

public static readonly Key Keypad9

Field Value

Key

KeypadDecimal

public static readonly Key KeypadDecimal

Field Value

Key

KeypadDivide

public static readonly Key KeypadDivide

Field Value

Key

KeypadMinus

public static readonly Key KeypadMinus

Field Value

Key

KeypadMultiply

public static readonly Key KeypadMultiply

Field Value

Key

KeypadPlus

public static readonly Key KeypadPlus

Field Value

Key

L

public static readonly Key L

Field Value

Key

LBracket

public static readonly Key LBracket

Field Value

Key

LastNormal

public static readonly Key LastNormal

Field Value

Key

Left

public static readonly Key Left

Field Value

Key

M

public static readonly Key M

Field Value

Key

MaxCount

public const int MaxCount = 512

Field Value

int

Menu

public static readonly Key Menu

Field Value

Key

Minus

public static readonly Key Minus

Field Value

Key

Mouse0

Left mouse button

public static readonly Key Mouse0

Field Value

Key

Mouse0DoubleClick

The double click with the left mouse button.

public static readonly Key Mouse0DoubleClick

Field Value

Key

Mouse1

Right mouse button

public static readonly Key Mouse1

Field Value

Key

Mouse1DoubleClick

The double click with the right mouse button.

public static readonly Key Mouse1DoubleClick

Field Value

Key

Mouse2

Middle mouse button

public static readonly Key Mouse2

Field Value

Key

MouseBack

public static readonly Key MouseBack

Field Value

Key

MouseForward

public static readonly Key MouseForward

Field Value

Key

MouseWheelDown

public static readonly Key MouseWheelDown

Field Value

Key

MouseWheelUp

public static readonly Key MouseWheelUp

Field Value

Key

N

public static readonly Key N

Field Value

Key

Number0

public static readonly Key Number0

Field Value

Key

Number1

public static readonly Key Number1

Field Value

Key

Number2

public static readonly Key Number2

Field Value

Key

Number3

public static readonly Key Number3

Field Value

Key

Number4

public static readonly Key Number4

Field Value

Key

Number5

public static readonly Key Number5

Field Value

Key

Number6

public static readonly Key Number6

Field Value

Key

Number7

public static readonly Key Number7

Field Value

Key

Number8

public static readonly Key Number8

Field Value

Key

Number9

public static readonly Key Number9

Field Value

Key

O

public static readonly Key O

Field Value

Key

P

public static readonly Key P

Field Value

Key

PageDown

public static readonly Key PageDown

Field Value

Key

PageUp

public static readonly Key PageUp

Field Value

Key

Pause

public static readonly Key Pause

Field Value

Key

Period

public static readonly Key Period

Field Value

Key

PrintScreen

public static readonly Key PrintScreen

Field Value

Key

Q

public static readonly Key Q

Field Value

Key

Quote

public static readonly Key Quote

Field Value

Key

R

public static readonly Key R

Field Value

Key

RBracket

public static readonly Key RBracket

Field Value

Key

Right

public static readonly Key Right

Field Value

Key

S

public static readonly Key S

Field Value

Key

ScrollLock

public static readonly Key ScrollLock

Field Value

Key

Semicolon

public static readonly Key Semicolon

Field Value

Key

Shift

public static readonly Key Shift

Field Value

Key

ShortcutMap

public static readonly Dictionary<Shortcut, Key> ShortcutMap

Field Value

Dictionary<Shortcut, Key>

Slash

public static readonly Key Slash

Field Value

Key

Space

public static readonly Key Space

Field Value

Key

T

public static readonly Key T

Field Value

Key

Tab

public static readonly Key Tab

Field Value

Key

Tilde

public static readonly Key Tilde

Field Value

Key

Touch0

public static readonly Key Touch0

Field Value

Key

Touch1

public static readonly Key Touch1

Field Value

Key

Touch2

public static readonly Key Touch2

Field Value

Key

Touch3

public static readonly Key Touch3

Field Value

Key

U

public static readonly Key U

Field Value

Key

Unknown

public static readonly Key Unknown

Field Value

Key

Up

public static readonly Key Up

Field Value

Key

V

public static readonly Key V

Field Value

Key

W

public static readonly Key W

Field Value

Key

Win

public static readonly Key Win

Field Value

Key

X

public static readonly Key X

Field Value

Key

Y

public static readonly Key Y

Field Value

Key

Z

public static readonly Key Z

Field Value

Key

Properties

Count

public static int Count { get; }

Property Value

int

Methods

AddAlias(Modifiers, Key)

public void AddAlias(Modifiers modifiers, Key main)

Parameters

modifiers Modifiers
main Key

AddAlias(Shortcut)

public void AddAlias(Shortcut shortcut)

Parameters

shortcut Shortcut

Enumerate()

public static IEnumerable<Key> Enumerate()

Returns

IEnumerable<Key>

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetByName(string)

public static Key GetByName(string name)

Parameters

name string

Returns

Key

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

IsAlphanumeric()

public bool IsAlphanumeric()

Returns

bool

IsDigit()

public bool IsDigit()

Returns

bool

IsDoubleClickKey()

public bool IsDoubleClickKey()

Returns

bool

IsFunctional()

public bool IsFunctional()

Returns

bool

IsLetter()

public bool IsLetter()

Returns

bool

IsModifier()

public bool IsModifier()

Returns

bool

IsMouseKey()

public bool IsMouseKey()

Returns

bool

IsPrintable()

public bool IsPrintable()

Returns

bool

IsTextEditing()

public bool IsTextEditing()

Returns

bool

IsTextNavigation()

public bool IsTextNavigation()

Returns

bool

MapShortcut(Key)

public static Key MapShortcut(Key main)

Parameters

main Key

Returns

Key

MapShortcut(Modifiers, Key)

public static Key MapShortcut(Modifiers modifiers, Key main)

Parameters

modifiers Modifiers
main Key

Returns

Key

MapShortcut(Shortcut)

public static Key MapShortcut(Shortcut shortcut)

Parameters

shortcut Shortcut

Returns

Key

New()

public static Key New()

Returns

Key

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

operator ==(Key, Key)

public static bool operator ==(Key lhs, Key rhs)

Parameters

lhs Key
rhs Key

Returns

bool

operator >(Key, Key)

public static bool operator >(Key lhs, Key rhs)

Parameters

lhs Key
rhs Key

Returns

bool

operator >=(Key, Key)

public static bool operator >=(Key lhs, Key rhs)

Parameters

lhs Key
rhs Key

Returns

bool

implicit operator int(Key)

public static implicit operator int(Key key)

Parameters

key Key

Returns

int

implicit operator Key(int)

public static implicit operator Key(int code)

Parameters

code int

Returns

Key

operator !=(Key, Key)

public static bool operator !=(Key lhs, Key rhs)

Parameters

lhs Key
rhs Key

Returns

bool

operator <(Key, Key)

public static bool operator <(Key lhs, Key rhs)

Parameters

lhs Key
rhs Key

Returns

bool

operator <=(Key, Key)

public static bool operator <=(Key lhs, Key rhs)

Parameters

lhs Key
rhs Key

Returns

bool