getGamepadRightTrigger

Script::getGamepadRightTrigger

Returns the value of the stick’s right trigger, with 0.0 being neutral and 1.0 being fully pressed.

Declaration

float getGamepadRightTrigger(GamepadID gamepadID);

Parameters

Name

Type

Description

gamepadID

GamepadID

The gamepad to get the right trigger value from.

Returns

A value between 0.0 and 1.0 where 0.0 means that the trigger is not pushed and 1.0 means that the trigger is completely pushed.