Menu
Lumberyard
User Guide (Version 1.13)

Gestures Gem

This topic references tools and features that are legacy. If you want to use legacy tools in Lumberyard Editor, disable the CryEntity Removal gem using the Project Configurator or the command line. To learn more about legacy features, see the Amazon Lumberyard Legacy Reference.

The Gestures Gem processes raw input to detect some of the most common gesture-based input actions, including the following:

  • Tap or click – Single-touch, discrete gesture

  • Drag or pan – Single-touch, continuous gesture

  • Hold or press – Single-touch, continuous gesture

  • Swipe – Single-touch, discrete gesture

  • Pinch – Multiple-touch, continuous gesture

  • Rotate – Multiple-touch, continuous gesture

You can configure and register gesture listeners using either C++ or flow graph nodes that are exposed through the Gestures Gem.

Multiple-touch gestures (such as pinch and rotate) can be recognized only through multiple simultaneous touches on a supported touch screen (currently, mobile devices running iOS or Android). On the other hand, single-touch gestures (such as tap, drag, hold, and swipe) function ideally with both supported touch screens and mouse input on a PC. The underlying C++ gesture recognition framework can be easily extended to write your own custom gestures and expose them through the Flow Graph editor.