© Andrés Colubri 2017

Andrés Colubri, Processing for Android, https://doi.org/10.1007/978-1-4842-2719-0_5

5. Touchscreen Interaction

Andrés Colubri

(1)Broad Institute, Cambridge, Massachusetts, USA

This chapter will provide detailed coverage of the touchscreen support in Processing for Android. We will learn how to capture single and multi-touch events in our sketch, how to process these events to implement touch-based interactions such as selection, scrolling, swipe, and pinch, as well as how to use the virtual keyboard.

Touch Events in Android

With this chapter, we have reached a topic that is quite specific to mobile devices. Since the introduction of the iPhone in 2007, the touchscreen has become the main mechanism of interaction with smartphones, ...

Get Processing for Android: Create Mobile, Sensor-Aware, and VR Applications Using Processing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.