NE::InputManager Class Reference

Managers for the Inputs. More...

#include <Engine/Controls/InputManager.h>

List of all members.

Public Types

typedef int ArrowsDirection
typedef int Buttons

Public Member Functions

void registerController (NE::Input *newController)
 registers a new controller
void deleteControllers (void)
 remove all registered controllers
ArrowsDirection getDirectionsPressed (void)
 Gets the directions.
Buttons getButtonsPressed (void)
 Gets the buttons pressed.
bool needEscape (void)
 Get if the escape sequence is pressed.
void update (void)
 update the buttons states

Static Public Attributes

static const ArrowsDirection AD_UP = 1
static const ArrowsDirection AD_UPRIGHT = 3
static const ArrowsDirection AD_RIGHT = 2
static const ArrowsDirection AD_RIGHTDOWN = 6
static const ArrowsDirection AD_DOWN = 4
static const ArrowsDirection AD_DOWNLEFT = 12
static const ArrowsDirection AD_LEFT = 8
static const ArrowsDirection AD_LEFTUP = 9
static const ArrowsDirection AD_NONE = 0
static const Buttons INPUT_NONE = 0
static const Buttons INPUT_A = 1
static const Buttons INPUT_B = 2
static const Buttons INPUT_X = 4
static const Buttons INPUT_Y = 8
static const Buttons INPUT_L = 16
static const Buttons INPUT_R = 32
static const Buttons INPUT_START = 64
static const Buttons INPUT_SELECT = 128
static const Buttons INPUT_VOLUMEUP = 256
static const Buttons INPUT_VOLUMEDOWN = 512

Detailed Description

Managers for the Inputs.


Member Typedef Documentation

Direction to go

Buttons pressed


Member Function Documentation

NE::InputManager::Buttons NE::InputManager::getButtonsPressed ( void   ) 

Gets the buttons pressed.

Returns:
the buttons pressed
NE::InputManager::ArrowsDirection NE::InputManager::getDirectionsPressed ( void   ) 

Gets the directions.

Returns:
the directions pressed
bool NE::InputManager::needEscape ( void   ) 

Get if the escape sequence is pressed.

Returns:
true if the escape sequenced has been pressed
void NE::InputManager::registerController ( NE::Input newController  ) 

registers a new controller

Parameters:
newController the new controller to register

Member Data Documentation

Down Direction

Down and Left Direction

Left Direction

Left and Up Direction

No direction

Right Direction

Right and Down Direction

Up Direction

Up and Right Direction

const Buttons NE::InputManager::INPUT_A = 1 [static]

A button

const Buttons NE::InputManager::INPUT_B = 2 [static]

B button

const Buttons NE::InputManager::INPUT_L = 16 [static]

L button

No button pressed

const Buttons NE::InputManager::INPUT_R = 32 [static]

R button

Select button

Start button

Volume Down button (GP2X)

Volume UP button (GP2X)

const Buttons NE::InputManager::INPUT_X = 4 [static]

X button

const Buttons NE::InputManager::INPUT_Y = 8 [static]

Y button


The documentation for this class was generated from the following files:
 All Classes Functions Variables Typedefs
Generated on Thu Oct 6 22:11:38 2011 for WE_Kit by  doxygen 1.6.3