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

The U4DTouchesController class manages the touch inputs (buttons and joysticks) detected on iOS devices. More...

Inherits U4DEngine::U4DGameController.

Public Member Functions

 U4DTouchesController ()
 Constructor for class.
 
 ~U4DTouchesController ()
 Destructor for class.
 
void init ()
 initialization method More...
 
- 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)
 
virtual void getUserInputData (GCExtendedGamepad *gamepad, GCControllerElement *element)
 
- 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 U4DTouchesController class manages the touch inputs (buttons and joysticks) detected on iOS devices.

Member Function Documentation

◆ init()

void U4DEngine::U4DTouchesController::init ( )
virtual

initialization method

In the initialization method, controller entities such as buttons and joysticks are created. callbacks are also created and linked

Reimplemented from U4DEngine::U4DGameController.