In this chapter we will learn how to receive and respond to input from the user. The following recipes will be covered in the chapter:
Creating an interactive object that responds to the mouse
Adding mouse events to our interactive object
Creating a slider
Creating a responsive text box
Dragging, scaling, and rotating objects using multi-touch
Introduction
In this chapter we will create graphical objects that react to the user using both mouse and touch interaction. We will learn how to create simple graphical interfaces that have their own events for greater flexibility.