AgateLib.InputLib.Keyboard.Keyboard.KeyState Class Reference

Class which represents the state of all keys on the keyboard. More...

List of all members.

Public Member Functions

bool GetWinFormsKey (System.Windows.Forms.Keys id)
 Gets the state of a key using the System.Windows.Forms.Keys enum values.
void SetWinFormsKey (System.Windows.Forms.Keys id, bool value)
 Sets the state of a key using the System.Windows.Forms.Keys enum values. Used by Forms to respond to key events.

Static Public Member Functions

static KeyCode TransformWinFormsKey (System.Windows.Forms.Keys id)
 Converts a System.Windows.Forms.Keys value to a KeyCode value.

Properties

bool this [KeyCode id] [get, set]
 Gets or sets the state of the given key.


Detailed Description

Class which represents the state of all keys on the keyboard.


Member Function Documentation

bool AgateLib.InputLib.Keyboard.Keyboard.KeyState.GetWinFormsKey ( System.Windows.Forms.Keys  id  ) 

Gets the state of a key using the System.Windows.Forms.Keys enum values.

Parameters:
id 
Returns:

void AgateLib.InputLib.Keyboard.Keyboard.KeyState.SetWinFormsKey ( System.Windows.Forms.Keys  id,
bool  value 
)

Sets the state of a key using the System.Windows.Forms.Keys enum values. Used by Forms to respond to key events.

Parameters:
id 
value 
Returns:

static KeyCode AgateLib.InputLib.Keyboard.Keyboard.KeyState.TransformWinFormsKey ( System.Windows.Forms.Keys  id  )  [static]

Converts a System.Windows.Forms.Keys value to a KeyCode value.

Parameters:
id 
Returns:


Property Documentation

bool AgateLib.InputLib.Keyboard.Keyboard.KeyState.this[KeyCode id] [get, set]

Gets or sets the state of the given key.

Parameters:
id 
Returns:


The documentation for this class was generated from the following file:
AgateLib
Awesome Game and Tool Engine Library
SourceForge.net Logo