Gorgon
Show / Hide Table of Contents

Class GorgonKeyboardEventArgs

Event arguments for the various events triggered on the GorgonRawKeyboard interface.

Inheritance
object
EventArgs
GorgonKeyboardEventArgs
Inherited Members
EventArgs.Empty
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Gorgon.Input
Assembly: Gorgon.Input.dll
Syntax
public class GorgonKeyboardEventArgs : EventArgs

Constructors

| Edit this page View Source

GorgonKeyboardEventArgs(Keys, Keys, int)

Initializes a new instance of the GorgonKeyboardEventArgs class.

Declaration
public GorgonKeyboardEventArgs(Keys key, Keys modifierKey, int scanData)
Parameters
Type Name Description
Keys key

Key that is pressed.

Keys modifierKey

Keys that are held down during the event.

int scanData

Scan code data.

Properties

| Edit this page View Source

Alt

Property to return if ALT is pressed or not.

Declaration
public bool Alt { get; }
Property Value
Type Description
bool
| Edit this page View Source

Ctrl

Property to return if Ctrl is pressed or not.

Declaration
public bool Ctrl { get; }
Property Value
Type Description
bool
| Edit this page View Source

Key

Property to return key that is pressed.

Declaration
public Keys Key { get; }
Property Value
Type Description
Keys
| Edit this page View Source

ModifierKeys

Property to return the keys that are being held down during the event.

Declaration
public Keys ModifierKeys { get; }
Property Value
Type Description
Keys
| Edit this page View Source

ScanCodeData

Property to return the scan code data.

Declaration
public int ScanCodeData { get; }
Property Value
Type Description
int
| Edit this page View Source

Shift

Property to return if Shift is pressed or not.

Declaration
public bool Shift { get; }
Property Value
Type Description
bool

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author