Datatype · Userdata
InputObject
userdatasince 1.7.0b-alpha
Snapshot of a single input transition fired by UserInputService.
Properties
4| Name | Type | Access | Description |
|---|---|---|---|
| KeyCode | KeyCode | read | The keyboard key or mouse button this input refers to. since 1.7.0b-alpha |
| UserInputType | UserInputType | read | What kind of input this is. Keyboard, a mouse button, mouse movement, etc. since 1.7.0b-alpha |
| Position | Vector2 | read | The screen position associated with the input, in pixels. since 1.7.0b-alpha |
| Delta | Vector2 | read | How much the position changed since the previous input event, in pixels. since 1.7.0b-alpha |