Hierarchy
Instance → Service → UserInputService
| Tags | Memory category |
|---|---|
| NotCreatable, Service | Services |
Methods
| Returns | Method | Tags | Security |
|---|---|---|---|
| Instance | GetFocusedTextBox () | ||
bool | GetGamepadConnected (gamepad: Enum.UserInputType) | ||
Objects | GetGamepadState (gamepad: Enum.UserInputType) | ||
Instances | GetKeysPressed () | ||
| Enum.UserInputType | GetLastInputType () | ||
Vector2 | GetMouseDelta () | ||
| Enum.Platform | GetPlatform () | ||
CFrame | GetUserCFrame (type: Enum.UserCFrame) | ||
bool | IsKeyDown (keyCode: Enum.KeyCode) | ||
bool | IsLuaTouchControls () | ||
| Hidden | RobloxScriptSecurity | ||
Properties
| Property | Type | Tags | Read | Write |
|---|---|---|---|---|
GamepadEnabled | bool | NotReplicated, ReadOnly | ||
KeyboardEnabled | bool | NotReplicated, ReadOnly | ||
ModalEnabled | bool | NotReplicated | ||
MouseBehavior | Enum.MouseBehavior | |||
MouseEnabled | bool | NotReplicated, ReadOnly | ||
MouseIconEnabled | bool | NotReplicated | ||
OverrideMouseIconBehavior | Enum.OverrideMouseIconBehavior | NotReplicated | ||
TouchEnabled | bool | NotReplicated, ReadOnly | ||
VREnabled | bool | NotReplicated, ReadOnly |
Events
| Event | Arguments | Tags | Security |
|---|---|---|---|
GamepadConnected | (gamepadNum: Enum.UserInputType) | LocalUserSecurity | |
GamepadDisconnected | (gamepadNum: Enum.UserInputType) | LocalUserSecurity | |
InputBegan | (input: InputObject, processed: bool) | LocalUserSecurity | |
InputChanged | (input: InputObject, processed: bool) | LocalUserSecurity | |
InputEnded | (input: InputObject, processed: bool) | LocalUserSecurity | |
LastInputTypeChanged | (inputType: Enum.UserInputType) | ||
TextBoxFocused | (textBox: Instance) | ||
TextBoxFocusReleased | (textBox: Instance) | ||
TouchMoved | (touch: InputObject, gameProcessedEvent: bool) | ||
TouchTap | (touchPositions: Array, gameProcessedEvent: bool, ...) |