Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.24 KB

getValidGestures.markdown

File metadata and controls

33 lines (21 loc) · 1.24 KB

simple_gesture.getValidGestures()

 
Type function
Library simple_gesture.*
Return value Array
Keywords simple, gesture, valid
See also Sample code, simple_gesture.setValidGestures(), simple_gesture.getSupportedGestures()

Overview

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().

Syntax

simple_gesture.getValidGestures()

Examples

local simple_gesture = require 'plugin.simple_gesture'

local validGestures = simple_gesture.getValidGestures()
print("Valid gestures: ")

for index=1,#validGestures do
	print("  " .. validGestures[index])
end