© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
A. ColubriProcessing for Androidhttps://doi.org/10.1007/978-1-4842-9585-4_5

5. Touchscreen Interaction

Andrés Colubri1  
(1)
University of Massachusetts, Worcester, MA, USA
 

This chapter goes into the details 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 finally reached a topic that is very specific to mobile devices. Since the introduction of the iPhone in 2007, the touchscreen ...

Get Processing for Android: Create Mobile, Sensor-aware, and XR 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.