blob: 343b611e2c898afc929b4468d598849a1e8b59fb (
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
local 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
|