The Open Toolkit library  1.1
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Properties | List of all members
OpenTK.Input.KeyboardKeyEventArgs Class Reference

Defines the event data for KeyboardDevice events. More...

Inherits EventArgs.

Public Member Functions

 KeyboardKeyEventArgs ()
 Constructs a new KeyboardEventArgs instance. More...
 
 KeyboardKeyEventArgs (KeyboardKeyEventArgs args)
 Constructs a new KeyboardEventArgs instance. More...
 

Properties

Key Key [get, set]
 Gets the Key that generated this event. More...
 
uint ScanCode [get, set]
 Gets the scancode which generated this event. More...
 

Detailed Description

Defines the event data for KeyboardDevice events.

Do not cache instances of this type outside their event handler. If necessary, you can clone a KeyboardEventArgs instance using the KeyboardKeyEventArgs(KeyboardKeyEventArgs) constructor.

Constructor & Destructor Documentation

OpenTK.Input.KeyboardKeyEventArgs.KeyboardKeyEventArgs ( )

Constructs a new KeyboardEventArgs instance.

OpenTK.Input.KeyboardKeyEventArgs.KeyboardKeyEventArgs ( KeyboardKeyEventArgs  args)

Constructs a new KeyboardEventArgs instance.

Parameters
argsAn existing KeyboardEventArgs instance to clone.

Property Documentation

Key OpenTK.Input.KeyboardKeyEventArgs.Key
getset

Gets the Key that generated this event.

uint OpenTK.Input.KeyboardKeyEventArgs.ScanCode
getset

Gets the scancode which generated this event.