A simple way to achieve that would be to replace the current checkbox (enable touchpad → true / false) with a combobox (enable touchpad → always / never / when no USB mouse is present).
A simple way to achieve that would be to replace the current checkbox (enable touchpad → true / false) with a combobox (enable touchpad → always / never / when no USB mouse is present).