On our Mazda 2, which is an auto, it is how hard the brake pedal is pushed which determines if the engine stops or keeps running. Press it just lightly enough to stop the vehicle and the engine stops. Press it harder and the engine stops. Lift off and the engine restarts.