Category: Input
Syntax:
inpGetLeftTrigger:Double(controller:Int)
Double
Returns the analog pressure value of the left trigger.
Takes controller (Int).
Returns floating-point number between 0.0 and 1.0.
View detailed documentation online
Include "BBR_INCLUDE.bam"
Local controller:Int = inpCreateController(0)
Forever
inpUpdateController(controller)
Local trigger:Double = inpGetLeftTrigger(controller)
If trigger > 0.0
Print "Left trigger pressure: " + trigger
End If
If inpIsKeyHit(VK_ESCAPE) Then Exit
Forever
inpFreeController(controller)
BambooBasic © 2026 Michael Denathorn