How can OpenGL program response to hardware input?

I want to build a program that can response to hardware inputting observer position data,How can I make the data inputting interrupt trigger the scene render?
Any suggestion? thank you very much!
I used the glutDisplayFunc(RenderScene) before,but it can only response to mouse,window size,and window position,not other interruptes.

This has nothing to do with OpenGL – you just need to find out how your hardware notifies the system that new data is available.

– Tom