|
Untold Engine
Beta v0.0.16
docs
|
The U4DKeyboardController class manages the user inputs detected on the keyboard and mouse on a mac. More...
Inherits U4DEngine::U4DGameController.
Public Member Functions | |
| U4DKeyboardController () | |
| Constructor for class. | |
| ~U4DKeyboardController () | |
| Destructor for class. | |
| void | init () |
| Initialization method. More... | |
| void | getUserInputData (unichar uCharacter, INPUTELEMENTACTION uInputAction) |
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... | |
| U4DWorld * | getGameWorld () |
| Gets the current U4DWorld entity linked to the controller. More... | |
| U4DGameLogicInterface * | getGameLogic () |
| 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... | |
| 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 | |
| U4DWorld * | gameWorld |
| The view component (mvc) linked to the controller. More... | |
| U4DGameLogicInterface * | gameLogic |
| the model component (mvc) linked to the controller More... | |
| bool | receivedAction |
| variable to determine if an action was received | |
The U4DKeyboardController class manages the user inputs detected on the keyboard and mouse on a mac.
|
virtual |
Initialization method.
In the initialization method, controller entities such as mac keys and mouse are created. Callbacks are also created and linked.
Reimplemented from U4DEngine::U4DGameController.