Managers for the Inputs. More...
#include <Engine/Controls/InputManager.h>
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 |
Managers for the Inputs.
typedef int NE::InputManager::ArrowsDirection |
Direction to go
typedef int NE::InputManager::Buttons |
Buttons pressed
NE::InputManager::Buttons NE::InputManager::getButtonsPressed | ( | void | ) |
Gets the buttons pressed.
NE::InputManager::ArrowsDirection NE::InputManager::getDirectionsPressed | ( | void | ) |
Gets the directions.
bool NE::InputManager::needEscape | ( | void | ) |
Get if the escape sequence is pressed.
void NE::InputManager::registerController | ( | NE::Input * | newController | ) |
registers a new controller
newController | the new controller to register |
const ArrowsDirection NE::InputManager::AD_DOWN = 4 [static] |
Down Direction
const ArrowsDirection NE::InputManager::AD_DOWNLEFT = 12 [static] |
Down and Left Direction
const ArrowsDirection NE::InputManager::AD_LEFT = 8 [static] |
Left Direction
const ArrowsDirection NE::InputManager::AD_LEFTUP = 9 [static] |
Left and Up Direction
const ArrowsDirection NE::InputManager::AD_NONE = 0 [static] |
No direction
const ArrowsDirection NE::InputManager::AD_RIGHT = 2 [static] |
Right Direction
const ArrowsDirection NE::InputManager::AD_RIGHTDOWN = 6 [static] |
Right and Down Direction
const ArrowsDirection NE::InputManager::AD_UP = 1 [static] |
Up Direction
const ArrowsDirection NE::InputManager::AD_UPRIGHT = 3 [static] |
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
const Buttons NE::InputManager::INPUT_NONE = 0 [static] |
No button pressed
const Buttons NE::InputManager::INPUT_R = 32 [static] |
R button
const Buttons NE::InputManager::INPUT_SELECT = 128 [static] |
Select button
const Buttons NE::InputManager::INPUT_START = 64 [static] |
Start button
const Buttons NE::InputManager::INPUT_VOLUMEDOWN = 512 [static] |
Volume Down button (GP2X)
const Buttons NE::InputManager::INPUT_VOLUMEUP = 256 [static] |
Volume UP button (GP2X)
const Buttons NE::InputManager::INPUT_X = 4 [static] |
X button
const Buttons NE::InputManager::INPUT_Y = 8 [static] |
Y button