O'Reilly logo

openFrameworks Essentials by Denis Perevalov, Igor Tatarnikov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Adding a GUI and Handling Keyboard Events

Most of the real-time projects, including video synthesizers, need to be interactive. The simple way to do it is to equip the project with a GUI and handle keyboard events. In this chapter, we will consider how to do this by covering the following topics:

  • Creating a GUI with sliders and checkboxes
  • Handling keyboard events
  • Saving screenshots
  • Working with presets
  • Using system dialogs to save and load files

Finally, we will implement an advanced method for generating geometric patterns, called matrix pattern generator.

Creating a GUI using the ofxGui addon

A GUI is a set of visual elements for controlling an application with mice and keyboards on desktops, and with fingers on mobiles. It includes panels ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required