Members
isInMenu :boolean
    Are we currently in the menu? If not, we're in Microgames.
    Type:
- boolean
- Source:
(private) pauseInputTimer :number
    Some time in the future that we should be pausing input for. Set in module:menumanager~MicrogameJamMenuInputReader#pauseInputs.
    Type:
- number
- Source:
(private) selectableElements :Array:.<Selectable:>
    List of elements that we can select from.
    Type:
- Source:
(readonly) selectableElements
- Source:
(private) selectableVectorField :MenuVectorField
    The vector field we're using for the current menu state.
    Type:
- MenuVectorField
- Source:
(private) selectablesToAdd
    Buffer of selectables to add as things we can select.
Not added immediately so we can transition between menu states.
- Source:
(private) selectedElement :number
    The current element we've selected.
    Type:
- number
- Source:
Methods
(direction)
    Mostly a wrapper for module:menumanager~MenuVectorField#getFromDir, but has some functionality for picking an element to highlight if one cannot be found.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| direction | MenuVector | 
- Source:
addSelectable(selectable)
    Add a selectable to module:menumanager~MicrogameJamMenuInputReader#selectablesToAdd
    Parameters:
| Name | Type | Description | 
|---|---|---|
| selectable | Selectable | 
- Source:
clearSelect()
    Clear selection of current selectables.
- Source:
pauseInputs(ms)
    Pause recieving inputs. Set module:menumanager~MicrogameJamMenuInputReader#pauseInputTimer.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| ms | number | The duration of the input pause. | 
- Source:
readMenuInputs(ev)
    Read an input and apply it to the menu. Called by onkeydown by the constructor of module:menumanager~MicrogameJamMenuInputReader.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| ev | Event | 
- Source:
resetMenuInputs()
    Called on a menu state change. Reset inputs for a new set of selectables.
Calls module:menumanager~MicrogameJamMenuInputReader#setUpMenuInputs and module:menumanager~MicrogameJamMenuInputReader#clearSelect.
- Source:
setElement(index)
    Select an element given an index.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| index | number | 
- Source:
setUpMenuInputs()
    Called with every state change to a new menu state. Set up the current selectables and MenuVectorField from those selectables.
- Source: