


This service provides a scalable way to capture input changes and device input states for multiple devices at once.Īdditionally, you can use ContextActionService to handle multiple actions on a single input depending on context, such as using a tool when near a rock, or opening a door when inside a building. Like all device inputs, you can capture mouse inputs using UserInputService. Mouse inputs also automatically work with interactive UI elements, such as TextBoxes or ImageButtons.

Roblox also supports legacy mouse input detection with PlayerMouse and ClickDetectors. You can detect mouse position and button clicks using the UserInputService to capture generic mouse inputs. Except for the reserved bindings, you can overwrite these default key binds. Once you're comfortable with mouse and keyboard inputs, make your experience compatible with multiple platforms by setting up mobile and gamepad inputs.įor convenience, Roblox sets the most common mouse and keyboard inputs as default key binds. Mouse and keyboards are the most common input devices, so it is important to test and develop your custom input behavior on these devices first. You can create unique experiences and provide users with additional functionality with custom inputs.
