Class KeyUpEventArgs
This event is triggered when a keyboard key is released.
Inherited Members
Namespace: OpenTK.Platform
Assembly: OpenTK.Platform.dll
Syntax
public class KeyUpEventArgs : WindowEventArgs
Remarks
Do not use this event to handle typing, use TextInputEventArgs instead.
Constructors
KeyUpEventArgs(WindowHandle, Key, Scancode, KeyModifier)
Initializes a new instance of the KeyUpEventArgs class.
Declaration
public KeyUpEventArgs(WindowHandle window, Key key, Scancode scancode, KeyModifier modifiers)
Parameters
| Type | Name | Description |
|---|---|---|
| WindowHandle | window | The window which received this keypress. |
| Key | key | The key that was released. |
| Scancode | scancode | The scancode representing the key. |
| KeyModifier | modifiers | The keyboard modifiers that where down while this key was released. |
Properties
Key
The virtual key that was pressed. FIXME: Document difference between Key and Scancode.
Declaration
public Key Key { get; }
Property Value
| Type | Description |
|---|---|
| Key |
Modifiers
The keyboard modifiers that where down while this key was released.
Declaration
public KeyModifier Modifiers { get; }
Property Value
| Type | Description |
|---|---|
| KeyModifier |
Scancode
The scancode of the key pressed. FIXME: Document difference between Key and Scancode.
Declaration
public Scancode Scancode { get; }
Property Value
| Type | Description |
|---|---|
| Scancode |