blob: cb410446d7f036a51822df0c176235187d76ddea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
-- Engage the LLGesture LLEventAPI
leap = require 'leap'
local LLGesture = {}
function LLGesture.getActiveGestures()
return leap.request('LLGesture', {op='getActiveGestures'})['gestures']
end
function LLGesture.isGesturePlaying(id)
return leap.request('LLGesture', {op='isGesturePlaying', id=id})['playing']
end
function LLGesture.startGesture(id)
leap.send('LLGesture', {op='startGesture', id=id})
end
function LLGesture.stopGesture(id)
leap.send('LLGesture', {op='stopGesture', id=id})
end
return LLGesture
|