Show / Hide Table of Contents

Class KeyUpEventArgs

This event is triggered when a keyboard key is released.

Inheritance
object
EventArgs
WindowEventArgs
KeyUpEventArgs
Inherited Members
WindowEventArgs.Window
EventArgs.Empty
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
In this article
Back to top Generated by DocFX