blob: 6101c7a31270ebd8bf73fbb938c136ed65669728 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
-- Engage the UI LLEventAPI
leap = require 'leap'
util = require 'util'
local UI = {}
function UI.call(func, parameter)
-- 'call' is fire-and-forget
util.check_response(leap.request('UI', {op='call', ['function']=func, parameter=parameter}))
end
function UI.getValue(path)
return util.check_response(leap.request('UI', {op='getValue', path=path}))['value']
end
return UI
|