When should I handle keyboard input?

Hey,

I’m using a bool buffer for my keys to check if a key is pressed or not. Atm I’m handling the input in the render callback method glutDisplayFunc(RenderSceneCB) but I’m pretty sure that’s the wrong place. Where should I put it? I couldn’t find a useful callback that fits.

Before I did it in the glKeyboard(Up)Func(Keyboard(Up)CB) callbacks but it looked rly ugly and the camera wasn’t smooth at all.

Greetings,
Jan