PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

UserInputType

UserInputType

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


Enums

Name Value Description

MouseButton1

0

The left mouse button.

MouseButton2

1

The right mouse button.

MouseButton3

2

The middle mouse button.

MouseWheel

3

The mouse wheel.

MouseMovement

4

Movement of the mouse.

Touch

7

A tap on the screen from a mobile device.

Keyboard

8

Key press on a keyboard.

Focus

9

The client regaining focus of the Roblox window.

Accelerometer

10

The accelerometer of a mobile device.

Gyro

11

The Gyroscope of a mobile device.

Gamepad1

12

Input from the 1st plugged in Gamepad.

Gamepad2

13

Input from the 2nd plugged in Gamepad.

Gamepad3

14

Input from the 3rd plugged in Gamepad.

Gamepad4

15

Input from the 4th plugged in Gamepad.

Gamepad5

16

Input from the 5th plugged in Gamepad

Gamepad6

17

Input from the 6th plugged in Gamepad.

Gamepad7

18

Input from the 7th plugged in Gamepad.

Gamepad8

19

Input from the 8th plugged in Gamepad.

TextInput

20

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

None

21

Unknown UserInputType.

Referenced by

  • UserInputService/LastInputTypeChanged
  • UserInputService/GamepadDisconnected
  • UserInputService/GamepadConnected
  • UserInputService/SetNavigationGamepad
  • UserInputService/IsNavigationGamepad
  • UserInputService/IsMouseButtonPressed
  • UserInputService/IsGamepadButtonDown
  • UserInputService/GetSupportedGamepadKeyCodes
  • UserInputService/GetLastInputType
  • UserInputService/GetGamepadState
  • UserInputService/GetGamepadConnected
  • UserInputService/GamepadSupports
  • ThirdPartyUserService/RegisterActiveUser
  • InputObject/UserInputType
  • HapticService/SetMotor
  • HapticService/IsVibrationSupported
  • HapticService/IsMotorSupported
  • HapticService/GetMotor
  • ContextActionService/UnbindActivate
  • ContextActionService/BindActivate