Skip to main content

GameControllerModule.Side

Enum

Which 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
1 platform note
  • 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

Platform details

  • Snapchat — Not supported — Available on SPECS only.

  • SPECS — Fully supported. Experimental API; it may change or be removed

  • Camera Kit Web — Not supported — Available on SPECS only.

  • Camera Kit Mobile — Not supported — Available on SPECS only.

Since Lens Scripting v373Experimental

Which side of the controller a thumbstick or trigger belongs to.

Index

Enumeration Members

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: number

ExperimentalSPECS

Thumbsticks/triggers on the right half of the controller.

Since

Lens Scripting Version 373