From your history it is clear that you have got black eye because of injury
. It is basically because of collection of blood in the subcutaneous layer of the eyelids. If the eye is not involved then nothing to worry as this condition will improve spontaneously. If the edema is severe you can use cold
compress to decrease the edema and oral anlagesic drugs for pain relief.