Enum
Enum.UserInputType
Describes the type of a user input event.
| Item | Value | Summary |
|---|---|---|
| Enum.UserInputType.MouseButton1 | 0 | The left mouse button. |
| Enum.UserInputType.MouseButton2 | 1 | The right mouse button. |
| Enum.UserInputType.MouseButton3 | 2 | The middle mouse button. |
| Enum.UserInputType.MouseWheel | 3 | The mouse wheel. |
| Enum.UserInputType.MouseMovement | 4 | Movement of the mouse. Fires changed events each time the player's cursor position changes and when the move enters/leaves the game window. |
| Enum.UserInputType.Touch | 7 | A tap on the screen from a mobile device. |
| Enum.UserInputType.Keyboard | 8 | Key press on a keyboard. |
| Enum.UserInputType.Focus | 9 | The client regaining focus of the Roblox window. |
| Enum.UserInputType.Accelerometer | 10 | The accelerometer of a mobile device. |
| Enum.UserInputType.Gyro | 11 | The Gyroscope of a mobile device. |
| Enum.UserInputType.Gamepad1 | 12 | Input from the 1st plugged in Gamepad. |
| Enum.UserInputType.Gamepad2 | 13 | Input from the 2nd plugged in Gamepad. |
| Enum.UserInputType.Gamepad3 | 14 | Input from the 3rd plugged in Gamepad. |
| Enum.UserInputType.Gamepad4 | 15 | Input from the 4th plugged in Gamepad. |
| Enum.UserInputType.Gamepad5 | 16 | Input from the 5th plugged in Gamepad. |
| Enum.UserInputType.Gamepad6 | 17 | Input from the 6th plugged in Gamepad. |
| Enum.UserInputType.Gamepad7 | 18 | Input from the 7th plugged in Gamepad. |
| Enum.UserInputType.Gamepad8 | 19 | Input from the 8th plugged in Gamepad. |
| Enum.UserInputType.TextInput | 20 | Input of Text into a text-based GuiObject. Normally this is only a TextBox. |
| Enum.UserInputType.InputMethod | 21 | Text input from an input method editor (IME). InputObjects with this type aren't currently fired. |
| Enum.UserInputType.None | 22 | Unknown UserInputType. |
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com.