UNPKG

@rbxts/mechanism

Version:

An elegant composable input library for Roblox

19 lines (18 loc) 831 B
import Signal from "@rbxts/lemon-signal"; import { BaseAction } from "./base-action"; import { type RawInput } from "./common"; export declare abstract class AxisAction extends BaseAction { readonly updated: Signal<() => void>; readonly axes: RawInput[]; readonly delta: Vector3; readonly position: Vector3; constructor(...axes: RawInput[]); /** @hidden */ handleInput(this: Writable<AxisAction>, input: InputObject, processed: boolean): void; } export declare class AxisActionBuilder extends AxisAction { /** Sets the ID of the action */ setID(this: Writable<AxisActionBuilder>, id: string | number): AxisActionBuilder; /** Sets whether the action is activated when gameProcessedEvent is true */ setProcessed(this: Writable<AxisActionBuilder>, processed: boolean): AxisActionBuilder; }