Tesla Graphics Engine Documentation (January 2012)
KeyPressedCondition Class
TeslaTesla.InputKeyPressedCondition
KeyPressedCondition checks if a bounded key has been pressed since the last update. It accounts for key repeats, which can be disabled or enabled.
Declaration Syntax
C#
public class KeyPressedCondition : InputCondition
Members
All Members Constructors Methods Properties



Icon Member Description
KeyPressedCondition(Keys, Boolean)
Creates a new KeyPressedCondition

AllowRepeat
Get or set if the condition should allow key repeats or not.

Check(GameTime)
Checks if the key is pressed.
(Overrides InputCondition.Check(GameTime).)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
KeyBinding
Get or set the key binding.

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Inheritance Hierarchy
Object
InputCondition
  KeyPressedCondition

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)