# Enum.InputActionType

Roblox Engine API enum from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- HTML page: https://rapi.sleaze.dev/enums/InputActionType/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/enums/InputActionType

This enum is used by [`InputAction.Type`](https://rapi.sleaze.dev/classes/InputAction.md) to determine which input data type the [`InputAction`](https://rapi.sleaze.dev/classes/InputAction.md) will receive.

## Items

| Name | Value | Description |
| --- | --- | --- |
| `Bool` | 0 | The [`InputAction`](https://rapi.sleaze.dev/classes/InputAction.md) will receive boolean values from button inputs, for example `true`/`false` on press/release from inputs such as `KeyCode.ButtonA` or `KeyCode.E`. This setting also exposes the `UIButton` property on child `InputBindings`, allowing you to easily hook up press or release of a [`GuiButton`](https://rapi.sleaze.dev/classes/GuiButton.md) for the action. |
| `Direction1D` | 1 | The [`InputAction`](https://rapi.sleaze.dev/classes/InputAction.md) will receive numerical values, generally from analog gamepad triggers such as `KeyCode.ButtonL2` or `KeyCode.ButtonR2`. This setting also exposes the `Up` and `Down` properties on child `InputBindings`, allowing for boolean inputs or "1D" inputs as composite directions for the action. |
| `Direction2D` | 2 | The [`InputAction`](https://rapi.sleaze.dev/classes/InputAction.md) will receive [`Vector2`](https://rapi.sleaze.dev/index/types/Vector2.md) values, generally from thumbstick inputs such as `KeyCode.Thumbstick1` and `KeyCode.Thumbstick2`. This setting also exposes the `Up`, `Down`, `Left`, and `Right` properties on child `InputBindings`, allowing for "2D" inputs as composite directions for the action. |
| `Direction3D` | 3 | The [`InputAction`](https://rapi.sleaze.dev/classes/InputAction.md) will receive [`Vector3`](https://rapi.sleaze.dev/index/types/Vector3.md) values from inputs assigned to the `Up`, `Down`, `Left`, `Right`, `Forward`, and/or `Backward` properties on child `InputBindings`, allowing for "3D" inputs as composite directions for the action. |
| `ViewportPosition` | 4 | The [`InputAction`](https://rapi.sleaze.dev/classes/InputAction.md) will receive [`Vector2`](https://rapi.sleaze.dev/index/types/Vector2.md) values representing the absolute pixel (**X**, **Y**) coordinates of a pointer input in the viewport. |

## Used by

Each entry lists the class, then the role and names of the members that use this type.

- [InputAction](https://rapi.sleaze.dev/classes/InputAction.md): property `Type`
