Skip to main content

Input

The Input package provides access to various user input classes.

Reference the desired input modules via the Input package to get started:

local PreferredInput = require(Packages.Input).PreferredInput
local Mouse = require(Packages.Input).Mouse
local Keyboard = require(Packages.Input).Keyboard
local Touch = require(Packages.Input).Touch
local Gamepad = require(Packages.Input).Gamepad
Show raw api
{
    "functions": [],
    "properties": [],
    "types": [],
    "name": "Input",
    "desc": "The Input package provides access to various user input classes.\n\n- [PreferredInput](/api/PreferredInput)\n- [Mouse](/api/Mouse)\n- [Keyboard](/api/Keyboard)\n- [Touch](/api/Touch)\n- [Gamepad](/api/Gamepad)\n\nReference the desired input modules via the Input package to get started:\n\n```lua\nlocal PreferredInput = require(Packages.Input).PreferredInput\nlocal Mouse = require(Packages.Input).Mouse\nlocal Keyboard = require(Packages.Input).Keyboard\nlocal Touch = require(Packages.Input).Touch\nlocal Gamepad = require(Packages.Input).Gamepad\n```",
    "source": {
        "line": 26,
        "path": "modules/input/init.luau"
    }
}