You may have fractured your leg. It is also possible that you have simply badly bruised it (which can hurt tremendously and for some time).
Since you are not able to walk well and there is still significant pain when pressing on the bone I would recommend you see your doctor or go to the urgent care for an evaluation and an x-ray to see if there is a fracture.
Advice and opinions given are based on the information provided and must not be considered an official medical recommendation. The limitations of the internet prevent an appropriate evaluation. Always consult your doctor if there is concern.