My question should go directly to the Ville but maybe others will help me too

However, this is not question related to the Z-Game Editor... I am reading a lot here on forum about the Editor since Ville announced it for the first time on the PGD website (3-4 years ago? ) but never created any resonable application with it. I am more like silent kibitzer

I like to programming games a lot but for the past years I was doing a lot in 2D and DirectX, now I've switched to the OpenGL due to the cross-platform reason.
I would like to ask you Ville how did you created a general sceleton OpenGL application. How should look like the main loop and how do you handle mouse and keyboard events. Is it done automatically by the Free Pascal?
Could you give a little example of this? I know that this is a bit off topic...
Anyway, thanks for your time and keep a good work!

Regards...