Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Paradox.Input.KeyEvent Struct Reference

A keyboard event. More...

Inheritance diagram for SiliconStudio.Paradox.Input.KeyEvent:
IEquatable< KeyEvent >

Public Member Functions

 KeyEvent (Keys key, KeyEventType type)
 Initializes a new instance of the KeyEvent struct. More...
 
bool Equals (KeyEvent other)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
override string ToString ()
 

Static Public Member Functions

static bool operator== (KeyEvent left, KeyEvent right)
 Implements the ==. More...
 
static bool operator!= (KeyEvent left, KeyEvent right)
 Implements the !=. More...
 

Public Attributes

readonly Keys Key
 The key that is being pressed or released. More...
 
readonly KeyEventType Type
 The key event type (released or pressed). More...
 

Detailed Description

A keyboard event.

Definition at line 10 of file KeyEvent.cs.

Constructor & Destructor Documentation

SiliconStudio.Paradox.Input.KeyEvent.KeyEvent ( Keys  key,
KeyEventType  type 
)

Initializes a new instance of the KeyEvent struct.

Parameters
keyThe key.
typeThe type.

Definition at line 27 of file KeyEvent.cs.

Member Function Documentation

bool SiliconStudio.Paradox.Input.KeyEvent.Equals ( KeyEvent  other)

Definition at line 34 of file KeyEvent.cs.

override bool SiliconStudio.Paradox.Input.KeyEvent.Equals ( object  obj)

Definition at line 40 of file KeyEvent.cs.

override int SiliconStudio.Paradox.Input.KeyEvent.GetHashCode ( )

Definition at line 47 of file KeyEvent.cs.

static bool SiliconStudio.Paradox.Input.KeyEvent.operator!= ( KeyEvent  left,
KeyEvent  right 
)
static

Implements the !=.

Parameters
leftThe left.
rightThe right.
Returns
The result of the operator.

Definition at line 72 of file KeyEvent.cs.

static bool SiliconStudio.Paradox.Input.KeyEvent.operator== ( KeyEvent  left,
KeyEvent  right 
)
static

Implements the ==.

Parameters
leftThe left.
rightThe right.
Returns
The result of the operator.

Definition at line 61 of file KeyEvent.cs.

override string SiliconStudio.Paradox.Input.KeyEvent.ToString ( )

Definition at line 77 of file KeyEvent.cs.

Member Data Documentation

readonly Keys SiliconStudio.Paradox.Input.KeyEvent.Key

The key that is being pressed or released.

Definition at line 15 of file KeyEvent.cs.

readonly KeyEventType SiliconStudio.Paradox.Input.KeyEvent.Type

The key event type (released or pressed).

Definition at line 20 of file KeyEvent.cs.


The documentation for this struct was generated from the following file: