MuGameFramework  1.0
MuGameFramework is a 2D game framework built upon C# and SFML
 All Classes Namespaces Files Functions Variables Enumerations Properties
MuGameFramework.InputDevice.KeyboardState Struct Reference

Object holding a certain state of the Keyboard More...

Public Member Functions

bool IsKeyDown (Key key)
 Check if a Keyboard key is down
bool IsKeyUp (Key key)
 Check if a Keyboard key is up
override bool Equals (object obj)
 Compare a KeyboardState with this for equality
override int GetHashCode ()
 Get the hash code for this object

Static Public Member Functions

static bool operator== (KeyboardState a, KeyboardState b)
 Compare two KeyboardStates for equality
static bool operator!= (KeyboardState a, KeyboardState b)
 Compare two KeyboardStates for inequality

Detailed Description

Object holding a certain state of the Keyboard

Member Function Documentation

override bool MuGameFramework.InputDevice.KeyboardState.Equals ( object  obj)

Compare a KeyboardState with this for equality

Parameters
objKeyboardState to compare
Returns
Result of comparison
override int MuGameFramework.InputDevice.KeyboardState.GetHashCode ( )

Get the hash code for this object

Returns
The hash code for this object
bool MuGameFramework.InputDevice.KeyboardState.IsKeyDown ( Key  key)

Check if a Keyboard key is down

Returns
Return if a Keyboard key is down
bool MuGameFramework.InputDevice.KeyboardState.IsKeyUp ( Key  key)

Check if a Keyboard key is up

Returns
Return if a Keyboard key is up
static bool MuGameFramework.InputDevice.KeyboardState.operator!= ( KeyboardState  a,
KeyboardState  b 
)
static

Compare two KeyboardStates for inequality

Parameters
aKeyboardState A to check
bKeyboardState B to check
Returns
Result of comparison
static bool MuGameFramework.InputDevice.KeyboardState.operator== ( KeyboardState  a,
KeyboardState  b 
)
static

Compare two KeyboardStates for equality

Parameters
aKeyboardState A to check
bKeyboardState B to check
Returns
Result of comparison

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