Reference API Roblox

Engine API

Website

Related

Reference API Roblox

PreferredInput

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

Items 3

HistoryNameValueDescription
675KeyboardAndMouse0

The player has connected or most recently interacted with a keyboard or mouse.

675Gamepad1

The player has connected or most recently interacted with a gamepad.

675Touch2

The player's device has touch capability and no other input method is available or was recently interacted with.

Description

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

History 4

Settings