Reference API Roblox

Engine API

Website

Related

Reference API Roblox

UserInputType

Describes the type of a user input event.

Items 21

HistoryNameValueDescription
113MouseButton10

The left mouse button.

113MouseButton21

The right mouse button.

113MouseButton32

The middle mouse button.

113MouseWheel3

The mouse wheel.

113MouseMovement4

Movement of the mouse. Fires changed events each time the player's cursor position changes and when the move enters/leaves the game window.

130Touch7

A tap on the screen from a mobile device.

130Keyboard8

Key press on a keyboard.

130Focus9

The client regaining focus of the Roblox window.

168Accelerometer10

The accelerometer of a mobile device.

168Gyro11

The Gyroscope of a mobile device.

185Gamepad112

Input from the 1st plugged in Gamepad.

185Gamepad213

Input from the 2nd plugged in Gamepad.

185Gamepad314

Input from the 3rd plugged in Gamepad.

185Gamepad415

Input from the 4th plugged in Gamepad.

225Gamepad516

Input from the 5th plugged in Gamepad.

225Gamepad617

Input from the 6th plugged in Gamepad.

225Gamepad718

Input from the 7th plugged in Gamepad.

225Gamepad819

Input from the 8th plugged in Gamepad.

226TextInput20

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

372InputMethod21

Text input from an input method editor (IME). InputObjects with this type aren't currently fired.

372None22

Unknown UserInputType.

Description

The UserInputType enum describes the kind of input being performed (mouse, keyboard, gamepad, touch, etc). This enum is used by the InputObject.UserInputType property of the same name, as well as various UserInputService and GuiObject events.

History 35

Settings