Skip to content

Controller

new Controller(): Controller

Controller

activateActionSet(actionSetHandle): void

Switches this controller to an action set. The call is cheap and can be repeated safely.

bigint

action set handle from getActionSet

void


getAnalogActionVector(actionHandle): AnalogActionVector

Reads the current vector of an analog action on this controller.

bigint

analog action handle from getAnalogAction

AnalogActionVector

x and y as reported by Steam Input. Unverified against a live Steam client: the value ranges are not checked here.


getHandle(): bigint

Returns the Steam Input handle of this controller.

bigint

the handle as a BigInt, the value used by controller-scoped Steam Input calls


getType(): InputType

Identifies the type of this controller.

InputType

the controller’s InputType, Unknown when Steam cannot identify it


isDigitalActionPressed(actionHandle): boolean

Checks whether a digital action is pressed on this controller.

bigint

digital action handle from getDigitalAction

boolean

true while the action is pressed, otherwise false

Turn ideas into shipped software.

HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.

Smart
OpenSpec workflows turn intent into a path from proposal to shipped change.
Efficient
Multi-agent execution runs research, build, and review in parallel.
Fun
Rich UI interactions make planning, agent work, and projects easier to follow.