I want to design something like this:
There is a button, an input pin, an output pin, a voltage input, and a voltage output.
If the button is pressed once while the device is off, it won't do anything. If the button is long-pressed while the device is off, it will set the voltage output to high (it will short the voltage input and output together). If the device is on and the button is pressed once, it will send a pulse to the output pin. If the device is on and the button is long-pressed, it will turn off the device (cutting the power on the voltage output). If it receives a pulse on the input, it will also cut the power.
I found the stm6600 chip but it does not quite do what I want it to do.
While searching online, I found a lot of advice about using microcontrollers. The thing is, I don't want to. I have the knowledge and the equipment to do so, but I don't want to use a uC just for this.