GameControllerModule.ControllerCapability
EnumOptional capabilities a controller may support.
- 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
Optional capabilities a controller may support. These are individual flags that can be combined (bitmask). Use ControllerInfo.hasCapability for convenience.
Index
Enumeration Members
Example
//@input Asset.GameControllerModule gameControllerModule
var provider = script.gameControllerModule.createController();
provider.onControllerConnected.add(function(event) {
if (event.controller.hasCapability(GameControllerModule.ControllerCapability.Motion)) {
print(event.controller.name + " supports motion input");
}
});
Enumeration Members
AnalogTriggers
AnalogTriggers:
number
ExperimentalSPECS
Controller supports analog trigger axes (enables onAnalogTriggerEvent).
Since
Lens Scripting Version 373
Motion
Motion:
number
ExperimentalSPECS
Controller has gyroscope and accelerometer (enables onMotionEvent).
Since
Lens Scripting Version 373
Touchpad
Touchpad:
number
ExperimentalSPECS
Controller has a touchpad (enables onTouchpadEvent).
Since
Lens Scripting Version 373