Experimental
State of a single touch point on the controller touchpad.
Lens Scripting Version 373
//@input Asset.GameControllerModule gameControllerModulevar provider = script.gameControllerModule.createController();provider.onTouchpadEvent.add(function(event) { event.touches.forEach(function(touch) { if (touch.state === GameControllerModule.TouchState.Began) { print("Touch " + touch.id + " began"); } });}); Copy
//@input Asset.GameControllerModule gameControllerModulevar provider = script.gameControllerModule.createController();provider.onTouchpadEvent.add(function(event) { event.touches.forEach(function(touch) { if (touch.state === GameControllerModule.TouchState.Began) { print("Touch " + touch.id + " began"); } });});
A new touch has started.
A touch was cancelled (e.g. interrupted by system).
A touch has ended (finger lifted).
An ongoing touch has changed position.
State of a single touch point on the controller touchpad.
Since
Lens Scripting Version 373
Snap OS
Example