diff options
Diffstat (limited to 'apps/plugins/lua/include_lua/menubuttons.lua')
-rw-r--r-- | apps/plugins/lua/include_lua/menubuttons.lua | 28 |
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 | |||
2 | local rbac_is_loaded = (package.loaded.actions ~= nil) | ||
3 | require("actions") -- Contains rb.actions & rb.contexts | ||
4 | |||
5 | -- Menu Button definitions -- | ||
6 | local 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 | |||
22 | if not rbac_is_loaded then | ||
23 | rb.actions = nil | ||
24 | rb.contexts = nil | ||
25 | package.loaded.actionss = nil | ||
26 | end | ||
27 | |||
28 | return button_t | ||