We use cookies on this site to enhance your user experience

UserInputType

UserInputType

Describes various types of user input, with various values depending on the input type.

Enums

Name Value Description
MouseButton10

The left mouse button.

MouseButton21

The right mouse button.

MouseButton32

The middle mouse button.

MouseWheel3

The mouse wheel.

MouseMovement4

Movement of the mouse.

Touch7

A tap on the screen from a mobile device.

Keyboard8

Key press on a keyboard.

Focus9

The client regaining focus of the Roblox window.

Accelerometer10

The accelerometer of a mobile device.

Gyro11

The Gyroscope of a mobile device.

Gamepad112

Input from the 1st plugged in Gamepad.

Gamepad213

Input from the 2nd plugged in Gamepad.

Gamepad314

Input from the 3rd plugged in Gamepad.

Gamepad415

Input from the 4th plugged in Gamepad.

Gamepad516

Input from the 5th plugged in Gamepad

Gamepad617

Input from the 6th plugged in Gamepad.

Gamepad718

Input from the 7th plugged in Gamepad.

Gamepad819

Input from the 8th plugged in Gamepad.

TextInput20

Input of Text into a text-based /GuiObject. Normally this is only a /TextBox.

None21

Unknown UserInputType.