GenericInputHandler

Parent Class: User Widget

This class is the lowest level, it handle user inputs and associates them to actions.


Class Properties

  • mInputBindings: This is an array of a custom structure where you can configure the relations between user inputs and actions, if you want to learn more read this post.
  • mIsMouseCursorEnabled: This is a boolean that store the status of the mouse cursor.
  • mIsActive: As the name of this boolean sais, it store the information of the activation, this means that if it is false the object will ignore user inputs and cannot be interactible.
  • mInputListener: This is an array of pointers to objects of this class, every time a user input is detected every listener is updated, so for example if you have a menu containing a button, that button is a listener of the menu, if the menu receive a user input, that input is propagated to the button.
  • mActiveDevice: This variable contains the active device, that is the last device that sent an input, it can be mouse, keyboard or gamepad.
  • mIsInputEnabled: This variabled stores the information whether inputs for this object will be ignored or not.
  • mInputController: This is an object that is able to call functions by name and if requested continuously calling them with a specific frequence.