inpGetRightTrigger

Category: Input

Syntax:

inpGetRightTrigger:Double(controller:Int)


Parameters

Returns

Double



Summary

Returns the analog pressure value of the right trigger.

Takes controller (Int).

Returns floating-point number between 0.0 and 1.0.

View detailed documentation online



Example
Include "BBR_INCLUDE.bam"

Local controller:Int = inpCreateController(0)

Forever
    inpUpdateController(controller)

    Local accel:Double = inpGetRightTrigger(controller)
    Local brake:Double = inpGetLeftTrigger(controller)

    Print "Accelerate: " + accel + " Brake: " + brake

    If inpIsKeyHit(VK_ESCAPE) Then Exit
Forever

inpFreeController(controller)

BambooBasic © 2026 Michael Denathorn