> For the complete documentation index, see [llms.txt](https://docs.engagevr.io/developer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.engagevr.io/developer/afx/node-dictionary/unity/input.md).

# Input

You can use input nodes to respond to user inputs. For more information, refer to the [Input](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Input.html) page in the Unity documentation.

## Mouse

You can use the mouse input nodes to branch a flow based on mouse button states.

<figure><img src="https://2640392766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5yxYHsXtlAaoMUrDWhLm%2Fuploads%2Fgit-blob-a3688c7cca7189dfc8c77f901c2a276d843b8b35%2Fafx_nodes_input_mouse.png?alt=media" alt=""><figcaption><p>The available mouse input nodes</p></figcaption></figure>

**Inputs:**

<table><thead><tr><th width="161">Name</th><th width="174">Type</th><th>Description</th></tr></thead><tbody><tr><td>Enter</td><td>Flow</td><td>Flow to activate the node.</td></tr></tbody></table>

**Outputs:**

<table><thead><tr><th width="160">Name</th><th width="178">Type</th><th>Description</th></tr></thead><tbody><tr><td>Exit</td><td>Flow</td><td>Continue the activating flow.</td></tr><tr><td>Left Click</td><td>Flow</td><td>Continue the activating flow based on the state of the left mouse button.</td></tr><tr><td>Middle Click</td><td>Flow</td><td>Continue the activating flow based on the state of the middle mouse button.</td></tr><tr><td>Right Click</td><td>Flow</td><td>Continue the activating flow based on the state of the right mouse button.</td></tr></tbody></table>

**Available nodes:**

<table><thead><tr><th width="233">Node</th><th>Description</th></tr></thead><tbody><tr><td>Get Mouse Button</td><td>Branches flows when the mouse buttons are held down.</td></tr><tr><td>Get Mouse Button Down</td><td>Branches flows in the frame when a mouse buttons is pressed.</td></tr><tr><td>Get Mouse Button Up</td><td>Branches flows in the frame when a mouse button is released.</td></tr></tbody></table>

## Input get nodes

There are multiple nodes that you can use to get input states. The input get nodes have a similar arrangement of inputs and outputs, as described in the following sections.

<figure><img src="https://2640392766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5yxYHsXtlAaoMUrDWhLm%2Fuploads%2Fgit-blob-d26bc2ee94196285e71f22703333302e1366585d%2Fafx_node_get_key_up.png?alt=media" alt=""><figcaption><p>Example input get node - the Get Key Up node</p></figcaption></figure>

**Inputs:**

<table><thead><tr><th width="161">Name</th><th width="174">Type</th><th>Description</th></tr></thead><tbody><tr><td>&#x3C;varies></td><td>String</td><td>The name of the input to evaluate.</td></tr></tbody></table>

**Outputs:**

<table><thead><tr><th width="160">Name</th><th width="178">Type</th><th>Description</th></tr></thead><tbody><tr><td>[Bool or Float] Out</td><td>Boolean or Float</td><td>For most nodes, a Boolean output indicates if the input is active. For example, if a key is pressed.<br><br>For the <code>Get Axis</code> node, the output is a float that indicates the deflection of input thumbstick, trackpad, or similar.</td></tr></tbody></table>

**Available nodes:**

<table><thead><tr><th width="179">Name</th><th>Description</th></tr></thead><tbody><tr><td>Get Button Down</td><td>Outputs true in the frame where the named button is pressed.</td></tr><tr><td>Get Button</td><td>Outputs true if the named button is held down.</td></tr><tr><td>Get Button Up</td><td>Outputs true in the frame where the named button is released.</td></tr><tr><td>Get Key Down</td><td>Outputs true in the frame where the named key is pressed.</td></tr><tr><td>Get Key</td><td>Outputs true if the named key is held down.</td></tr><tr><td>Get Key Up</td><td>Outputs true in the frame where the named key is released.</td></tr><tr><td>Get Axis</td><td>Outputs the amount of deflection in the named axis.</td></tr></tbody></table>
