Untold Engine  Beta v0.0.16
docs
U4DEngine::U4DGamepadController Class Reference

The U4DGamepadController class manages all inputs from a game pad. More...

Inherits U4DEngine::U4DGameController.

Public Member Functions

 U4DGamepadController ()
 Constructor for the class.
 
 ~U4DGamepadController ()
 Destructor for the class.
 
void init ()
 Initialization method. More...
 
void getUserInputData (GCExtendedGamepad *gamepad, GCControllerElement *element)
 
- Public Member Functions inherited from U4DEngine::U4DGameController
void update (double dt)
 
void registerInputEntity (U4DInputElement *uInputElement)
 
void removeInputEntity (U4DInputElement *uInputElement)
 
void notifyInputEntity ()
 
void changeState (INPUTELEMENTTYPE uInputElementType, INPUTELEMENTACTION uInputAction, U4DVector2n &uPosition)
 
void setGameWorld (U4DWorld *uGameWorld)
 Sets the current view component of the game. More...
 
void setGameLogic (U4DGameLogicInterface *uGameLogic)
 Sets the current Model component (MVC) of the game. More...
 
U4DWorldgetGameWorld ()
 Gets the current U4DWorld entity linked to the controller. More...
 
U4DGameLogicInterfacegetGameLogic ()
 Gets the current U4DGameLogic object linked to the controller. More...
 
void sendUserInputUpdate (void *uData)
 Sends user input to the linked U4DGameLogic. More...
 
void setReceivedAction (bool uValue)
 Indicates that an action on the controller has been received. More...
 
virtual void getUserInputData (unichar uCharacter, INPUTELEMENTACTION uInputAction)
 
void getUserInputData (INPUTELEMENTTYPE uInputElement, INPUTELEMENTACTION uInputAction, U4DVector2n &uPosition)
 
void getUserInputData (INPUTELEMENTTYPE uInputElement, INPUTELEMENTACTION uInputAction)
 
- Public Member Functions inherited from U4DEngine::U4DControllerInterface
virtual ~U4DControllerInterface ()
 Virtual destructor for interface. The actual destructor implementation is set by the subclasses.
 

Additional Inherited Members

- Protected Attributes inherited from U4DEngine::U4DGameController
U4DWorldgameWorld
 The view component (mvc) linked to the controller. More...
 
U4DGameLogicInterfacegameLogic
 the model component (mvc) linked to the controller More...
 
bool receivedAction
 variable to determine if an action was received
 

Detailed Description

The U4DGamepadController class manages all inputs from a game pad.

Member Function Documentation

◆ init()

void U4DEngine::U4DGamepadController::init ( )
virtual

Initialization method.

In the initialization method, controller entity such as gamepad is created and callbacks are linked

Reimplemented from U4DEngine::U4DGameController.