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
Alt
public static readonly Key Alt
Field Value
B
public static readonly Key B
Field Value
Back
public static readonly Key Back
Field Value
BackSlash
public static readonly Key BackSlash
Field Value
BackSpace
public static readonly Key BackSpace
Field Value
C
public static readonly Key C
Field Value
CapsLock
public static readonly Key CapsLock
Field Value
Code
public readonly int Code
Field Value
Comma
public static readonly Key Comma
Field Value
Control
public static readonly Key Control
Field Value
D
public static readonly Key D
Field Value
Delete
public static readonly Key Delete
Field Value
DismissSoftKeyboard
public static readonly Key DismissSoftKeyboard
Field Value
Down
public static readonly Key Down
Field Value
E
public static readonly Key E
Field Value
End
public static readonly Key End
Field Value
Enter
public static readonly Key Enter
Field Value
EqualsSign
public static readonly Key EqualsSign
Field Value
Escape
public static readonly Key Escape
Field Value
F
public static readonly Key F
Field Value
F1
public static readonly Key F1
Field Value
F10
public static readonly Key F10
Field Value
F11
public static readonly Key F11
Field Value
F12
public static readonly Key F12
Field Value
F2
public static readonly Key F2
Field Value
F3
public static readonly Key F3
Field Value
F4
public static readonly Key F4
Field Value
F5
public static readonly Key F5
Field Value
F6
public static readonly Key F6
Field Value
F7
public static readonly Key F7
Field Value
F8
public static readonly Key F8
Field Value
F9
public static readonly Key F9
Field Value
G
public static readonly Key G
Field Value
H
public static readonly Key H
Field Value
Home
public static readonly Key Home
Field Value
I
public static readonly Key I
Field Value
Insert
public static readonly Key Insert
Field Value
J
public static readonly Key J
Field Value
K
public static readonly Key K
Field Value
Keypad0
public static readonly Key Keypad0
Field Value
Keypad1
public static readonly Key Keypad1
Field Value
Keypad2
public static readonly Key Keypad2
Field Value
Keypad3
public static readonly Key Keypad3
Field Value
Keypad4
public static readonly Key Keypad4
Field Value
Keypad5
public static readonly Key Keypad5
Field Value
Keypad6
public static readonly Key Keypad6
Field Value
Keypad7
public static readonly Key Keypad7
Field Value
Keypad8
public static readonly Key Keypad8
Field Value
Keypad9
public static readonly Key Keypad9
Field Value
KeypadDecimal
public static readonly Key KeypadDecimal
Field Value
KeypadDivide
public static readonly Key KeypadDivide
Field Value
KeypadMinus
public static readonly Key KeypadMinus
Field Value
KeypadMultiply
public static readonly Key KeypadMultiply
Field Value
KeypadPlus
public static readonly Key KeypadPlus
Field Value
L
public static readonly Key L
Field Value
LBracket
public static readonly Key LBracket
Field Value
LastNormal
public static readonly Key LastNormal
Field Value
Left
public static readonly Key Left
Field Value
M
public static readonly Key M
Field Value
MaxCount
public const int MaxCount = 512
Field Value
Menu
public static readonly Key Menu
Field Value
Minus
public static readonly Key Minus
Field Value
Mouse0
Left mouse button
public static readonly Key Mouse0
Field Value
Mouse0DoubleClick
The double click with the left mouse button.
public static readonly Key Mouse0DoubleClick
Field Value
Mouse1
Right mouse button
public static readonly Key Mouse1
Field Value
Mouse1DoubleClick
The double click with the right mouse button.
public static readonly Key Mouse1DoubleClick
Field Value
Mouse2
Middle mouse button
public static readonly Key Mouse2
Field Value
MouseBack
public static readonly Key MouseBack
Field Value
MouseForward
public static readonly Key MouseForward
Field Value
MouseWheelDown
public static readonly Key MouseWheelDown
Field Value
MouseWheelUp
public static readonly Key MouseWheelUp
Field Value
N
public static readonly Key N
Field Value
Number0
public static readonly Key Number0
Field Value
Number1
public static readonly Key Number1
Field Value
Number2
public static readonly Key Number2
Field Value
Number3
public static readonly Key Number3
Field Value
Number4
public static readonly Key Number4
Field Value
Number5
public static readonly Key Number5
Field Value
Number6
public static readonly Key Number6
Field Value
Number7
public static readonly Key Number7
Field Value
Number8
public static readonly Key Number8
Field Value
Number9
public static readonly Key Number9
Field Value
O
public static readonly Key O
Field Value
P
public static readonly Key P
Field Value
PageDown
public static readonly Key PageDown
Field Value
PageUp
public static readonly Key PageUp
Field Value
Pause
public static readonly Key Pause
Field Value
Period
public static readonly Key Period
Field Value
PrintScreen
public static readonly Key PrintScreen
Field Value
Q
public static readonly Key Q
Field Value
Quote
public static readonly Key Quote
Field Value
R
public static readonly Key R
Field Value
RBracket
public static readonly Key RBracket
Field Value
Right
public static readonly Key Right
Field Value
S
public static readonly Key S
Field Value
ScrollLock
public static readonly Key ScrollLock
Field Value
Semicolon
public static readonly Key Semicolon
Field Value
Shift
public static readonly Key Shift
Field Value
ShortcutMap
public static readonly Dictionary<Shortcut, Key> ShortcutMap
Field Value
Slash
public static readonly Key Slash
Field Value
Space
public static readonly Key Space
Field Value
T
public static readonly Key T
Field Value
Tab
public static readonly Key Tab
Field Value
Tilde
public static readonly Key Tilde
Field Value
Touch0
public static readonly Key Touch0
Field Value
Touch1
public static readonly Key Touch1
Field Value
Touch2
public static readonly Key Touch2
Field Value
Touch3
public static readonly Key Touch3
Field Value
U
public static readonly Key U
Field Value
Unknown
public static readonly Key Unknown
Field Value
Up
public static readonly Key Up
Field Value
V
public static readonly Key V
Field Value
W
public static readonly Key W
Field Value
Win
public static readonly Key Win
Field Value
X
public static readonly Key X
Field Value
Y
public static readonly Key Y
Field Value
Z
public static readonly Key Z
Field Value
Properties
Count
public static int Count { get; }
Property Value
Methods
AddAlias(Modifiers, Key)
public void AddAlias(Modifiers modifiers, Key main)
Parameters
AddAlias(Shortcut)
public void AddAlias(Shortcut shortcut)
Parameters
shortcut
Shortcut
Enumerate()
public static IEnumerable<Key> Enumerate()
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe 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
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
IsDigit()
public bool IsDigit()
Returns
IsDoubleClickKey()
public bool IsDoubleClickKey()
Returns
IsFunctional()
public bool IsFunctional()
Returns
IsLetter()
public bool IsLetter()
Returns
IsModifier()
public bool IsModifier()
Returns
IsMouseKey()
public bool IsMouseKey()
Returns
IsPrintable()
public bool IsPrintable()
Returns
IsTextEditing()
public bool IsTextEditing()
Returns
IsTextNavigation()
public bool IsTextNavigation()
Returns
MapShortcut(Key)
public static Key MapShortcut(Key main)
Parameters
main
Key
Returns
MapShortcut(Modifiers, Key)
public static Key MapShortcut(Modifiers modifiers, Key main)
Parameters
Returns
MapShortcut(Shortcut)
public static Key MapShortcut(Shortcut shortcut)
Parameters
shortcut
Shortcut
Returns
New()
public static Key New()
Returns
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
Returns
operator >(Key, Key)
public static bool operator >(Key lhs, Key rhs)
Parameters
Returns
operator >=(Key, Key)
public static bool operator >=(Key lhs, Key rhs)
Parameters
Returns
implicit operator int(Key)
public static implicit operator int(Key key)
Parameters
key
Key
Returns
implicit operator Key(int)
public static implicit operator Key(int code)
Parameters
code
int
Returns
operator !=(Key, Key)
public static bool operator !=(Key lhs, Key rhs)
Parameters
Returns
operator <(Key, Key)
public static bool operator <(Key lhs, Key rhs)
Parameters
Returns
operator <=(Key, Key)
public static bool operator <=(Key lhs, Key rhs)