Show raw api
{
"functions": [
{
"name": "new",
"desc": "Constructs a new Touch input capturer.",
"params": [],
"returns": [],
"function_type": "static",
"source": {
"line": 87,
"path": "modules/input/Touch.luau"
}
},
{
"name": "IsTouchEnabled",
"desc": "Returns the value of [`UserInputService.TouchEnabled`](https://developer.roblox.com/en-us/api-reference/property/UserInputService/TouchEnabled).",
"params": [],
"returns": [
{
"desc": "",
"lua_type": "boolean\n"
}
],
"function_type": "method",
"source": {
"line": 109,
"path": "modules/input/Touch.luau"
}
},
{
"name": "Destroy",
"desc": "Destroys the Touch input capturer.",
"params": [],
"returns": [],
"function_type": "method",
"source": {
"line": 116,
"path": "modules/input/Touch.luau"
}
}
],
"properties": [
{
"name": "TouchTap",
"desc": "Proxy for [UserInputService.TouchTap](https://developer.roblox.com/en-us/api-reference/event/UserInputService/TouchTap).",
"lua_type": "Signal<(touchPositions: {Vector2}, processed: boolean)>",
"tags": [
"Event"
],
"source": {
"line": 29,
"path": "modules/input/Touch.luau"
}
},
{
"name": "TouchTapInWorld",
"desc": "Proxy for [UserInputService.TouchTapInWorld](https://developer.roblox.com/en-us/api-reference/event/UserInputService/TouchTapInWorld).",
"lua_type": "Signal<(position: Vector2, processed: boolean)>",
"tags": [
"Event"
],
"source": {
"line": 35,
"path": "modules/input/Touch.luau"
}
},
{
"name": "TouchMoved",
"desc": "Proxy for [UserInputService.TouchMoved](https://developer.roblox.com/en-us/api-reference/event/UserInputService/TouchMoved).",
"lua_type": "Signal<(touch: InputObject, processed: boolean)>",
"tags": [
"Event"
],
"source": {
"line": 41,
"path": "modules/input/Touch.luau"
}
},
{
"name": "TouchLongPress",
"desc": "Proxy for [UserInputService.TouchLongPress](https://developer.roblox.com/en-us/api-reference/event/UserInputService/TouchLongPress).",
"lua_type": "Signal<(touchPositions: {Vector2}, state: Enum.UserInputState, processed: boolean)>",
"tags": [
"Event"
],
"source": {
"line": 47,
"path": "modules/input/Touch.luau"
}
},
{
"name": "TouchPan",
"desc": "Proxy for [UserInputService.TouchPan](https://developer.roblox.com/en-us/api-reference/event/UserInputService/TouchPan).",
"lua_type": "Signal<(touchPositions: {Vector2}, totalTranslation: Vector2, velocity: Vector2, state: Enum.UserInputState, processed: boolean)>",
"tags": [
"Event"
],
"source": {
"line": 53,
"path": "modules/input/Touch.luau"
}
},
{
"name": "TouchPinch",
"desc": "Proxy for [UserInputService.TouchPinch](https://developer.roblox.com/en-us/api-reference/event/UserInputService/TouchPinch).",
"lua_type": "Signal<(touchPositions: {Vector2}, scale: number, velocity: Vector2, state: Enum.UserInputState, processed: boolean)>",
"tags": [
"Event"
],
"source": {
"line": 59,
"path": "modules/input/Touch.luau"
}
},
{
"name": "TouchRotate",
"desc": "Proxy for [UserInputService.TouchRotate](https://developer.roblox.com/en-us/api-reference/event/UserInputService/TouchRotate).",
"lua_type": "Signal<(touchPositions: {Vector2}, rotation: number, velocity: number, state: Enum.UserInputState, processed: boolean)>",
"tags": [
"Event"
],
"source": {
"line": 65,
"path": "modules/input/Touch.luau"
}
},
{
"name": "TouchSwipe",
"desc": "Proxy for [UserInputService.TouchSwipe](https://developer.roblox.com/en-us/api-reference/event/UserInputService/TouchSwipe).",
"lua_type": "Signal<(swipeDirection: Enum.SwipeDirection, numberOfTouches: number, processed: boolean)>",
"tags": [
"Event"
],
"source": {
"line": 71,
"path": "modules/input/Touch.luau"
}
},
{
"name": "TouchStarted",
"desc": "Proxy for [UserInputService.TouchStarted](https://developer.roblox.com/en-us/api-reference/event/UserInputService/TouchStarted).",
"lua_type": "Signal<(touch: InputObject, processed: boolean)>",
"tags": [
"Event"
],
"source": {
"line": 77,
"path": "modules/input/Touch.luau"
}
},
{
"name": "TouchEnded",
"desc": "Proxy for [UserInputService.TouchEnded](https://developer.roblox.com/en-us/api-reference/event/UserInputService/TouchEnded).",
"lua_type": "Signal<(touch: InputObject, processed: boolean)>",
"tags": [
"Event"
],
"source": {
"line": 83,
"path": "modules/input/Touch.luau"
}
}
],
"types": [],
"name": "Touch",
"desc": "The Touch class is part of the Input package.\n\n```lua\nlocal Touch = require(packages.Input).Touch\n```",
"realm": [
"Client"
],
"source": {
"line": 20,
"path": "modules/input/Touch.luau"
}
}