PDA

View Full Version : Enable users to interact via the keyboard in OpenGL



ljubomir993
12-14-2014, 03:54 PM
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 :(((

Alfonse Reinheart
12-14-2014, 05:33 PM
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.

ljubomir993
12-15-2014, 07:55 AM
Oke. Thank you! I need move my object along x-axis , rotation, ... Need deal code..