Black Ops III

PrimaryButtonPressedLocal

Check if the local player is pressing the primary button (BUTTON_A)

Example:

if ( self PrimaryButtonPressedLocal() ) ...