blob: 24f822bbd981b588cd082c0ee4ce99686842ad7b (
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.request('UI', {op='call', ['function']=func, parameter=parameter})
end
function UI.getValue(path)
return leap.request('UI', {op='getValue', path=path})['value']
end
return UI
|