Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.03 KB

getSupportedGestures.markdown

File metadata and controls

33 lines (21 loc) · 1.03 KB

simple_gesture.getSupportedGestures()

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

Overview

This function returns an array of the names of the supported gestures. These are the valid inputs to simple_gesture.setValidGestures().

Syntax

simple_gesture.getSupportedGestures()

Examples

local simple_gesture = require 'plugin.simple_gesture'

local supportedGestures = simple_gesture.getSupportedGestures()
print("Supported gestures: ")

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