Mobile Input Handling
Overview
Features
How to Use
1. Creating an Action
local ContextActionService = game:GetService("ContextActionService")
local ActionName = "JumpAction"
local IsCreateTouchButton = true
local KeyCode = Enum.KeyCode.F
local function OnAction(actionName, inputState, inputObject)
if inputState == Enum.UserInputState.Begin then
print(actionName .. " triggered!")
end
end
ContextActionService:BindAction(ActionName, OnAction, IsCreateTouchButton, KeyCode)

2. Disabling an Action
3. Handling Input States
Type
Description
4. Retrieving a Specific Action
5. Retrieving All Created Actions
Default Input Handling
Mobile Joystick, Jump Button Display Control
Mobile Screen Touch Detection
Mobile Joystick Input Detection
Last updated