DoopelPonger
|
Class that listens for keyboard input to change the selected menu item. It will also check the location of the mouse and if the mouse hovers over a selectable text object it will make that text item the selected item. More...
Public Member Functions | |
void | Awake () |
Initialization of references needed by this class. More... | |
void | OnEnable () |
Register hooks into the InputManager when the menu gets activated. More... | |
void | OnDisable () |
Remove the hooks into the InputManager when the menu gets deactivated. More... | |
void | Update () |
Check the position of the mouse, take action if it is hovering selectable text. If the mouse is clicked, check to see if it is over the selectable text. More... | |
void | SwitchKeyboardContext (UIKeyboardControllerContextManager.UIKeyboardControllerContextName contextName) |
A new menu is showing up on screen and text items to select should change. More... | |
void | DeregisterInputManager () |
Force the hooks that are in the InputManager to be removed. More... | |
void | RegisterInputManager () |
Force the hooks to be placed back into the InputManager. More... | |
UIKeyboardControllerContextManager.UIKeyboardControllerContextName | GetCurrentContextName () |
Public Attributes | |
string | inputManagerBaseTag |
UIKeyboardControllerContextManager.UIKeyboardControllerContextName | defaultContextName |
UIKeyboardControllerContextManager | contextManager |
GraphicRaycaster | graphicRaycaster |
Class that listens for keyboard input to change the selected menu item. It will also check the location of the mouse and if the mouse hovers over a selectable text object it will make that text item the selected item.
void UIKeyboardController.Awake | ( | ) |
Initialization of references needed by this class.
void UIKeyboardController.DeregisterInputManager | ( | ) |
Force the hooks that are in the InputManager to be removed.
UIKeyboardControllerContextManager.UIKeyboardControllerContextName UIKeyboardController.GetCurrentContextName | ( | ) |
void UIKeyboardController.OnDisable | ( | ) |
Remove the hooks into the InputManager when the menu gets deactivated.
void UIKeyboardController.OnEnable | ( | ) |
Register hooks into the InputManager when the menu gets activated.
void UIKeyboardController.RegisterInputManager | ( | ) |
Force the hooks to be placed back into the InputManager.
void UIKeyboardController.SwitchKeyboardContext | ( | UIKeyboardControllerContextManager.UIKeyboardControllerContextName | contextName | ) |
A new menu is showing up on screen and text items to select should change.
contextName | The context that belongs to the new menu on screen. |
void UIKeyboardController.Update | ( | ) |
Check the position of the mouse, take action if it is hovering selectable text. If the mouse is clicked, check to see if it is over the selectable text.
UIKeyboardControllerContextManager UIKeyboardController.contextManager |
The ContextManager that provides all the text objects in context name.
UIKeyboardControllerContextManager.UIKeyboardControllerContextName UIKeyboardController.defaultContextName |
Context name of all the text objects in the menu.
GraphicRaycaster UIKeyboardController.graphicRaycaster |
Unity object to raycast the mouse onto the UI components.
string UIKeyboardController.inputManagerBaseTag |
Tag used in the InputManager as a unique identifier.