Enable users to interact via the keyboard in OpenGL

Enable users to interact via the keyboard: with the Q outputs from the application, with buttons A / Z can move the crane along the x-axis to 5 units, with the keys E / D is performed in 5-degree rotation around the x-axis, with buttons S / F performs the rotation of 2.5 degrees along the y-axis.

Please help me :(((

OpenGL is a graphics API, not a means to get user input. If your problem is actually performing the increment (ie: what you do once you get the input), then ask about that. Though really, you should spend some time on understanding how to handle orientation at all if you don’t know how to incrementally adjust an orientation.

Oke. Thank you! I need move my object along x-axis , rotation, … Need deal code…