summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/include_lua/menubuttons.lua
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/include_lua/menubuttons.lua')
-rw-r--r--apps/plugins/lua/include_lua/menubuttons.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/apps/plugins/lua/include_lua/menubuttons.lua b/apps/plugins/lua/include_lua/menubuttons.lua
new file mode 100644
index 0000000000..e358d94a10
--- /dev/null
+++ b/apps/plugins/lua/include_lua/menubuttons.lua
@@ -0,0 +1,28 @@
1
2local rbac_is_loaded = (package.loaded.actions ~= nil)
3require("actions") -- Contains rb.actions & rb.contexts
4
5-- Menu Button definitions --
6local button_t = {
7 CANCEL = rb.actions.PLA_CANCEL,
8 DOWN = rb.actions.PLA_DOWN,
9 DOWNR = rb.actions.PLA_DOWN_REPEAT,
10 EXIT = rb.actions.PLA_EXIT,
11 LEFT = rb.actions.PLA_LEFT,
12 LEFTR = rb.actions.PLA_LEFT_REPEAT,
13 RIGHT = rb.actions.PLA_RIGHT,
14 RIGHTR = rb.actions.PLA_RIGHT_REPEAT,
15 SEL = rb.actions.PLA_SELECT,
16 SELREL = rb.actions.PLA_SELECT_REL,
17 SELR = rb.actions.PLA_SELECT_REPEAT,
18 UP = rb.actions.PLA_UP,
19 UPR = rb.actions.PLA_UP_REPEAT,
20}
21
22if not rbac_is_loaded then
23 rb.actions = nil
24 rb.contexts = nil
25 package.loaded.actionss = nil
26end
27
28return button_t