Reference/Datatypes/InputObject
Datatype · Userdata

InputObject

userdatasince 1.7.0b-alpha

Snapshot of a single input transition fired by UserInputService.

Properties

4
NameTypeAccessDescription
KeyCodeKeyCoderead

The keyboard key or mouse button this input refers to.

since 1.7.0b-alpha
UserInputTypeUserInputTyperead

What kind of input this is. Keyboard, a mouse button, mouse movement, etc.

since 1.7.0b-alpha
PositionVector2read

The screen position associated with the input, in pixels.

since 1.7.0b-alpha
DeltaVector2read

How much the position changed since the previous input event, in pixels.

since 1.7.0b-alpha