GameControllerModule.Side
EnumWhich side of the controller a thumbstick or trigger belongs to.
- Snapchat: not supported
- SPECS: fully supported
- Camera Kit Web: not supported
- Camera Kit Mobile: not supported
- SnapchatNot supported — Available on SPECS only
- SPECSFully supported
- Experimental API; it may change or be removed.
- Camera Kit WebNot supported — Available on SPECS only
- Camera Kit MobileNot supported — Available on SPECS only
Since Lens Scripting v373Experimental
Which side of the controller a thumbstick or trigger belongs to.
Index
Example
//@input Asset.GameControllerModule gameControllerModule
var provider = script.gameControllerModule.createController();
provider.onAnalogTriggerEvent.add(function(event) {
if (event.side === GameControllerModule.Side.Left) {
print("Left trigger: " + event.value);
}
});
Enumeration Members
Left
Left:
number
ExperimentalSPECS
Thumbsticks/triggers on the left half of the controller.
Since
Lens Scripting Version 373
Right
Right:
number
ExperimentalSPECS
Thumbsticks/triggers on the right half of the controller.
Since
Lens Scripting Version 373