Skip to content

Home › Overview › ink

input_collector ​

Collects player input from an input source, such as UserInputService or a GuiObject.

Constructors: input_collector.new

Types ​

InputCollector type ​

luau
type InputCollector = setmetatable<{
	frame: types.InputFrame,
	state: types.InputState,
	pending_pressed: boolean,
	pending_released: boolean,
	pending_wheel: number,
	pending_keys: { [Enum.KeyCode]: boolean },
	to_local: (Vector2) -> Vector2,
	screen_pointer: Vector2,
	touch: InputObject?,
	connections: { RBXScriptConnection },
}, typeof(input_collector)>

Functions ​

new ​

luau
input_collector.new(source: types.InputSource, to_local: (Vector2) -> Vector2): InputCollector

Methods ​

advance ​

luau
input_collector:advance()

commit ​

luau
input_collector:commit(composite: types.Composite)

destroy ​

luau
input_collector:destroy()