NE::SDL_Joy Class Reference

Handle the joystick. More...

#include <NEngine/Native/SDL/SDL_Joy.h>

Inheritance diagram for NE::SDL_Joy:
NE::Input

List of all members.

Public Member Functions

 SDL_Joy ()
 Basic constructor Call the update function to have an array ready.
 ~SDL_Joy ()
 Basic destructor Do nothing because the array get is an internal SDL array.
NE::InputManager::ArrowsDirection getDirectionsPressed (void) const
 Check which direction the user wants to go The function is checking the arrow keys and determine which direction the user wants to go. The check allows diagonals directions.
NE::InputManager::Buttons getButtonsState (void)
 Gets the buttons pressed.
bool needEscape (void)
 Check if the user pressed the keys to escape This function is checking the escape kee.
void update (void)
 Update the keys array.

Detailed Description

Handle the joystick.

Can check the following:


Member Function Documentation

InputManager::Buttons NE::SDL_Joy::getButtonsState ( void   )  [inline, virtual]

Gets the buttons pressed.

Returns:
the buttons pressed

Implements NE::Input.

InputManager::ArrowsDirection NE::SDL_Joy::getDirectionsPressed ( void   )  const [inline, virtual]

Check which direction the user wants to go The function is checking the arrow keys and determine which direction the user wants to go. The check allows diagonals directions.

Returns:
the direction

Implements NE::Input.

bool NE::SDL_Joy::needEscape ( void   )  [virtual]

Check if the user pressed the keys to escape This function is checking the escape kee.

Returns:
true if the program should escape

Implements NE::Input.


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