Tesla Graphics Engine Documentation (January 2012)
FirstPersonControl Class
TeslaTesla.Input.ControlFirstPersonControl
Convienent class that sets up First Person Shooter (FPS) input controls where WSAD keys move the camera forward/backword/left/right and the mouse looks around.
Declaration Syntax
C#
public class FirstPersonControl
Members
All Members Constructors Methods Properties



Icon Member Description
FirstPersonControl(Camera, InputLayer)
Initializes a new instance of the FirstPersonControl class.

Camera
Gets or sets the camera the FPS controls will use.

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.)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
MoveSpeed
Gets or sets the movement speed of the camera. Default is 150.

RotateSpeed
Gets or sets the camera rotation speed. Default is .1f.

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Inheritance Hierarchy
Object
FirstPersonControl

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