# Enum.PreferredInput

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

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

This enum is used with [`UserInputService.PreferredInput`](https://rapi.sleaze.dev/classes/UserInputService.md) to indicate the primary input type a player is likely using.

## Items

| Name | Value | Description |
| --- | --- | --- |
| `KeyboardAndMouse` | 0 | The player has connected or most recently interacted with a keyboard or mouse. |
| `Gamepad` | 1 | The player has connected or most recently interacted with a gamepad. |
| `Touch` | 2 | The player's device has touch capability and no other input method is available or was recently interacted with. |
| `MicroGamepad` | 3 | The player has connected or most recently interacted with a gamepad without a thumbstick (for example, a TV remote or another limited-input gamepad), and no standard gamepad is currently connected. |

## Used by

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

- [StyleQuery](https://rapi.sleaze.dev/classes/StyleQuery.md): property `PreferredInput`
- [UserInputService](https://rapi.sleaze.dev/classes/UserInputService.md): property `PreferredInput`
