Tesla Graphics Engine Documentation (January 2012)
Tesla.Input Namespace
TeslaTesla.Input
 
Declaration Syntax
C#
namespace Tesla.Input
Types
All Types Classes Structures Interfaces Enumerations Delegates
Icon Type Description
ButtonState
Enumeration defining the state of a button.

InputAction..::..DelegateInputAction
Delegate that contains logic that is excuted by InputAction.Perform(), used in leiu of a subclass.

InputCondition..::..DelegateInputCondition
Delegate that contains a condition used by InputCondition.Check(), in leiu of a subclass.

IKeyboardProvider
Service provider for creating and querying a native keyboard implementation.

IKeyboardWrapper
Wrapper class used to communicate to a native keyboard.

IMouseProvider
Service provider for creating and querying a native mouse implementation.

IMouseWrapper
Wrapper interface used to communicate with a native mouse.

InputAction
InputAction contains the logic that should be performed when an input condition is true. This is paired with an InputCondition inside an InputTrigger. Actions and conditions can vary independently of one another, allowing actions to be reused.

InputCondition
InputCondition contains a condition that must be satisfied by the input. If a condition is true, then an action can be performed. This is paired with an InputAction inside an InputTrigger. Conditions and actions can vary independently of one another, allowing conditions to be reused.

InputLayer
InputLayer manages a set of input triggers and is used to logically organize triggers.

InputTrigger
InputTriggers are defined by a condition and an action. If the condition is satisfied, the action is triggered.

Keyboard
Keyboard static class that polls the current keyboard state. Usage is equivalent to directly using an IKeyboardWrapper.

KeyboardState
Represents the state of the keyboard, e.g. which keys are pressed.

KeyPressedCondition
KeyPressedCondition checks if a bounded key has been pressed since the last update. It accounts for key repeats, which can be disabled or enabled.

KeyReleasedCondition
KeyReleasedCondition checks if a bounded key has been released, after it has been pressed.

Keys
Enumeration keycode values for keyboard keys.

KeyState
Enumeration defining the state of a key.

Mouse
Mouse static class that polls the current mouse state. Usage is equivalent to directly using an IMouseWrapper.

MouseState
Represents the state of the mouse, e.g. where the cursor is located on the screen (client coordinates), and what buttons are pressed.