Moving an object using keyboard controls

In this section, we will be looking at how to move an object in OpenGL using keyboard controls. Qt provides an easy way to detect keyboard events using virtual functions, namely keyPressEvent() and keyReleaseEvent(). We will be using the previous example and adding to it.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset