input in graphics.h?

Can the user interact during runtime? I want to give user an option to draw a box at a certain location. So the user presses some key and the box appears at that location. Is this possible in graphics.h? Can we take inputs from the user at runtime?
P.S. I'm hiding the details for the matter of simplicity...
Topic archived. No new replies allowed.