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