Type | function |
Library | simple_gesture.* |
Return value | Array |
Keywords | simple, gesture, valid |
See also | Sample code, simple_gesture.setValidGestures(), simple_gesture.getSupportedGestures() |
This function returns an array of the names of the valid gestures. These are the currently recognized gestures, as set by simple_gesture.setValidGestures(). By default, the valid gestures are the full set of supported gestures, as returned by simple_gesture.getSupportedGestures().
simple_gesture.getValidGestures()
local simple_gesture = require 'plugin.simple_gesture'
local validGestures = simple_gesture.getValidGestures()
print("Valid gestures: ")
for index=1,#validGestures do
print(" " .. validGestures[index])
end