I want to change the Camtimer example in this way, that I am in the cameramode until the user press a key.
I set a flag and then I sked for this flag in a while loop.
But now I can't press a key, tha means no key event occurs.
How can I get the keyevent in the while loop?
you can not get any events in a loop... You basically have to utilize active objects and, should really wait the events to happen in your events handlers.