in opengl window, user is able to move through a 3d space with mouse and keys.
if i put down "move key". it moves one time, then it sleeps for a while
and then it countinues moving.
how to make movements smooth? i think that it is connected with repetition of
keyboard buttons, after pressing one for a while.
some code:
Code: Select all
void Viewport::OnKeyDown(wxKeyEvent &event) {
switch(event.GetKeyCode()) {
case WXK_UP:
kamera.move(speed);
[...]
i have tried with
Code: Select all
case 'w':
case 'W':