Type | Library |
Corona Store | simple_gesture |
Keywords | simple, gesture, touch, event, listener |
See also | Sample code |
The simple gesture plugin can be used in your Corona project. It enables you to enhance touch listeners on large objects, such as background images, to recognise simple gesture events, such as directional swipes.
local simple_gesture = require "plugin.simple_gesture"
When you build using the Corona Simulator, the server automatically takes care of integrating the plugin into your project.
All you need to do is add an entry into a plugins
table of your build.settings
. The following is an example of a minimal build.settings
file:
settings =
{
plugins =
{
-- key is the name passed to Lua's 'require()'
["plugin.simple_gesture"] =
{
-- required
publisherId = "com.pelagic-games",
},
},
}
If you have activated this plugin, you can download this plugin from the corresponding plugin page in the Corona Store.
You can access sample code here.
More support is available from the Pelagic Games team:
Platform | Supported |
---|---|
iOS | Yes |
Android | Yes |
Android (GameStick) | Yes |
Android (Kindle) | Yes |
Android (NOOK) | Yes |
Android (Ouya) | Yes |
Mac App | Yes |
Win32 App | Yes |
Windows Phone 8 | Yes |
Corona Simulator (Mac) | Yes |
Corona Simulator (Win) | Yes |