-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInteract.lua
More file actions
48 lines (36 loc) · 918 Bytes
/
Copy pathInteract.lua
File metadata and controls
48 lines (36 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
local interact = {}
function interact.planetNavigation(key)
if key == ('up') then
navi_ui.planetSelectUp()
end
if key == ('down') then
navi_ui.planetSelectDown()
end
if key == ('a') then
navi_ui.toggleDisplayDetails()
currentFocusStateIndex = 5 -- switch to launcher after selecting planet
end
if key == ('b') then
currentFocusStateIndex = 1
end
end
function interact.gridNavigation(key)
if key == ('up') then
GridMenu.navigateGridUp()
end
if key == ('down') then
GridMenu.navigateGridDown()
end
if key == ('left') then
GridMenu.navigateGridLeft()
end
if key == ('right') then
GridMenu.navigateGridRight()
end
if key == ('a') then
OptionsMenu.showOptions()
OptionsMenu.loadModuleInfo()
currentFocusStateIndex = 3
end
end
return interact