Plzzzzzz try it yourself while looooooooking into ßzeee ssssszzzzßßßßämples!
In the default.c file is a rudimentary camera code implented which you can already activate on the [0]-key. Try to copy that code into your own script and adapt it to your needs. It is not that easy sometimes, but this is not that hard.