ExperimentalReadonly ExperimentalonEvent fired when a stick's axis values change.
Readonly ExperimentalonEvent fired when a trigger's analog axis value changes.
Readonly ExperimentalonEvent fired when a button is pressed or released on any connected controller.
Readonly ExperimentalonEvent fired when a new game controller is connected. Use .add() to subscribe.
Readonly ExperimentalonEvent fired when a game controller is disconnected. Use .add() to subscribe.
Readonly ExperimentalonEvent fired when motion sensor data is received. Only on motion-capable controllers.
Readonly ExperimentalonEvent fired when touchpad input is received. Only on controllers with a touchpad.
ExperimentalReturns an array of ControllerInfo objects describing each currently connected game controller.
StaticgetExperimentalReturns the name of this object's type.
ExperimentalReturns true if the object matches or derives from the passed in type.
ExperimentalReturns true if this object is the same as other. Useful for checking if two references point to the same thing.
ExperimentalTriggers haptic feedback (rumble) on the specified controller. Intensity values range from 0.0 (off) to 1.0 (max); duration is in seconds.
Represents an active game controller session. Exposes event properties to subscribe to controller input and lifecycle changes, plus methods to query connected controllers and trigger haptic feedback. Obtained by calling GameControllerModule.createController. Subscribe to events via the
on*properties (e.g.onButtonEvent.add(handler)).Since
Lens Scripting Version 373
Snap OS
Example