How to start Animation left turn With the cursor

I have a problem I did not get help from any side now and in the forum there was only one problem was solved bad bad

i have hear left turn and right turn
and this script to Rotate player left and right With the cursor moving

I want to move the cursor (mouse) to the right of (right turn) and to the left (left turn) when i stop the cursor stops both
I can not find a solution for this plz help

so i fix it
need to
public float turnspeed = 0.0f;

    turnspeed = Input.GetAxis("Mouse X");

    if (turnspeed > 0)


        anim.SetBool("isleft", true);

        anim.SetBool("isnotleft", false);
        anim.SetBool("isleft", false);

        anim.SetBool("isnotleft", true);