Otter  0.9.8.91
2d Game Development Framework based on SFML.Net
 All Classes Namespaces Functions Variables Enumerations Properties
Otter.DebugInput Class Reference

Class that is used for debug input. Wraps the Input class but only works when debug input is enabled. More...

Public Member Functions

bool KeyPressed (Key k)
 Check if a key was pressed. More...
 
bool KeyReleased (Key k)
 Check if a key was released. More...
 
bool KeyDown (Key k)
 Check if a key is down. More...
 
bool KeyUp (Key k)
 Check if a key is up. More...
 

Public Attributes

bool Enabled
 Determines if debug input will be used. If false all checks will return false. More...
 
Game Game
 The parent Game. More...
 

Static Public Attributes

static DebugInput Instance
 The active instance of DebugInput. More...
 

Detailed Description

Class that is used for debug input. Wraps the Input class but only works when debug input is enabled.

Member Function Documentation

bool Otter.DebugInput.KeyDown ( Key  k)

Check if a key is down.

Parameters
kThe key to check.
Returns
True if that key is down.
bool Otter.DebugInput.KeyPressed ( Key  k)

Check if a key was pressed.

Parameters
kThe key to check.
Returns
True if that key was pressed.
bool Otter.DebugInput.KeyReleased ( Key  k)

Check if a key was released.

Parameters
kThe key to check.
Returns
True if that key was released.
bool Otter.DebugInput.KeyUp ( Key  k)

Check if a key is up.

Parameters
kThe key to check.
Returns
True if that key is up.

Member Data Documentation

bool Otter.DebugInput.Enabled

Determines if debug input will be used. If false all checks will return false.

Game Otter.DebugInput.Game

The parent Game.

DebugInput Otter.DebugInput.Instance
static

The active instance of DebugInput.


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