inpRightTriggerDown

Category: Input

Syntax:

inpRightTriggerDown:Int(controller:Int)


Parameters

Returns

Int



Summary

Checks if the right trigger is pressed beyond the threshold.

Takes controller (Int).

Returns 1 if pressed beyond threshold (approximately 25-30%), or 0 if not.

View detailed documentation online



Example
Include "BBR_INCLUDE.bam"

Local controller:Int = inpCreateController(0)

Forever
    inpUpdateController(controller)

    If inpRightTriggerDown(controller)
        Print "Firing weapon!"
    End If

    If inpIsKeyHit(VK_ESCAPE) Then Exit
Forever

inpFreeController(controller)

BambooBasic © 2026 Michael Denathorn