Category: Input
Syntax:
inpRightTriggerHit:Int(controller:Int)
Int
Detects a single-frame press of the right trigger.
Takes controller (Int).
Returns 1 only on the frame when trigger transitions from released to pressed, then 0 until released and pressed again.
View detailed documentation online
Include "BBR_INCLUDE.bam"
Local controller:Int = inpCreateController(0)
Local jumpCount:Int = 0
Forever
inpUpdateController(controller)
If inpRightTriggerHit(controller)
jumpCount = jumpCount + 1
Print "Jump! Total jumps: " + jumpCount
End If
If inpIsKeyHit(VK_ESCAPE) Then Exit
Forever
inpFreeController(controller)
BambooBasic © 2026 Michael Denathorn