Skip to content

Enum

Enum.PreferredInput

This enum is used with UserInputService.PreferredInput to indicate the primary input type a player is likely using.

Official docs ↗
ItemValueSummary
Enum.PreferredInput.KeyboardAndMouse0The player has connected or most recently interacted with a keyboard or mouse.
Enum.PreferredInput.Gamepad1The player has connected or most recently interacted with a gamepad.
Enum.PreferredInput.Touch2The player's device has touch capability and no other input method is available or was recently interacted with.
Enum.PreferredInput.MicroGamepad3The 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.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com.