Added the boolean parameter to differentiate the left and right trigger.