Playstation controlling servos

What is supposed to be happening here?

        if(ps2x.Button(PSB_L2))

        if(ps2x.Button(PSB_L3))

        if(ps2x.Button(PSB_R2))

        if(ps2x.Button(PSB_R3))

        if(ps2x.Button(PSB_GREEN))         
    
        if(ps2x.ButtonPressed(PSB_RED))

        if(ps2x.ButtonReleased(PSB_PINK))            
    
        if(ps2x.NewButtonState(PSB_BLUE))            
           {
           moveservo(3,255); // ear wiggle
           delay (200);
           moveservo(3,0);  // ear wiggle
           }