Callbacks using hardware

I'm using a touch screen on my arduino to create a very simple UI. I was wondering rather than putting my isbuttonpressed() function in a loop, if it was possible to assign a certain screen space to a callback?

If you don't have experience with touch screens, is it possible with any other type of feedback device? An example would be awesome!!