UserInputService
UserInputService : Instance
Overview
Description
UserInputService
is a service in a game development environment that provides functions to handle and detect user input. It allows developers to work with various input devices, including keyboards, mice, touch devices, and controllers, to create an interactive experience. This service is particularly useful for capturing input events, such as key presses, mouse movements, or touch gestures.
Properties
(No properties provided in the document.)
Methods
(No methods provided in the document.)
Events
TouchStarted
Fires when the user begins touching the screen of a touch-enabled device.
Parameters
InputObject
InputObject
The touch input object containing data about the touch event.
bool
bGameProcessed
Indicates if the touch event was already processed by the game.
Code Samples
TouchMoved
Fires when the user's touch moves across the screen.
Parameters
InputObject
InputObject
The touch input object containing data about the movement.
bool
bGameProcessed
Indicates if the movement event was already processed by the game.
Code Samples
TouchEnded
Fires when the user lifts their finger and stops touching the screen of a touch-enabled device.
Parameters
InputObject
InputObject
The touch input object containing data about the end of the touch.
bool
bGameProcessed
Indicates if the touch event was already processed by the game.
Code Samples
InputBegan
Fires when the user begins interacting with an input device (e.g., a key or mouse button is pressed).
Parameters
InputObject
InputObject
The input object containing data about the interaction.
bool
bGameProcessed
Indicates if the input event was already processed by the game.
Code Samples
InputChanged
Fires when the user changes an input, such as moving a mouse or dragging on a touch screen.
Parameters
InputObject
InputObject
The input object containing data about the change in input.
bool
bGameProcessed
Indicates if the input event was already processed by the game.
Code Samples
InputEnded
Fires when the user stops interacting with an input device (e.g., a key or mouse button is released).
Parameters
InputObject
InputObject
The input object containing data about the end of the interaction.
bool
bGameProcessed
Indicates if the input event was already processed by the game.
Code Samples
Last updated