But the :keydown event loop is not working properly. Here is the issue
Fist input is working properly if i press "up" or "down" the camera works properly, if i press the same again button it works properly, but if i press another button first i does not respond then if a press the same button again it is moving opposite direction.
"up" => works properly (camera moves up).
"down" => does not respond.
"down" => does not work properly (camera moves up not down).
same for the opposite:
"down" => works properly (camera moves down).
"up" => does not respond.
"up" => does not work properly (camera moves down not up).
I have done many variants, but i could not correct this issue. If i replace
(progn (update-data camera :up)) with (print "up")
(progn (update-data camera :down)) with (print "down")
i get a slightly different behavior but again not the correct one. I get:
"up" or "down" => white space ; not correct
"up" => up ; correct
"down" => up ; not correct
"down" => down ; correct
"up" => down ; not correct
"up" => up ; correct
I can not solve this issue. What is the issue? How can i solve it? Is there a solution?
https://github.com/huseyindenli/UDEMY-opengl-python-to-CL
I have the main function which includes the game loop:
with initialization and display functions.
(progn (update-data camera :up)) with (print "up") (progn (update-data camera :down)) with (print "down")