/usr/share/games/cavepacker/config.lua is in cavepacker-data 2.4+git20160609-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | function isMobile()
return (isAndroid() or isIOS()) and not isOUYA();
end
defaultwidth = -1
defaultheight = -1
defaultfullscreen = true
defaultpersister = "sqlite"
defaultfrontend = "sdl"
defaultsoundengine = "sdl"
defaultshowcursor = true
defaultnetwork = true
defaultgamecontroller = false
defaulttexturesize = "auto"
defaultparticles = 100
defaultfpslimit = 60
defaultred = 8
defaultgreen = 8
defaultblue = 8
if isOUYA() then
defaultgamecontroller = true
defaultparticles = 0
defaultred = 6
defaultgreen = 5
defaultblue = 6
elseif isSteamLink() then
defaultwidth = 1280
defaultheight = 720
defaultgamecontroller = true
defaultparticles = 0
defaultnetwork = true
defaultshowcursor = false
elseif isAndroid() then
defaultshowcursor = false
defaultparticles = 0
defaultfpslimit = 30
rendertotexture = 0
defaultpersister = "googleplay"
defaultred = 6
defaultgreen = 5
defaultblue = 6
elseif isIOS() then
defaultshowcursor = false
defaultparticles = 0
defaultfpslimit = 30
rendertotexture = 0
defaultred = 6
defaultgreen = 5
defaultblue = 6
elseif isMobile() then
defaultshowcursor = false
defaultparticles = 0
defaultfpslimit = 30
elseif isHTML5() then
defaultnetwork = false
defaultfrontend = "opengl"
defaultsoundengine = "dummy"
elseif isNaCl() then
defaultpersister = "nop"
defaultnetwork = false
else
defaultgamecontroller = true
end
settings = {
width = defaultwidth,
height = defaultheight,
fullscreen = defaultfullscreen,
frontend = defaultfrontend,
port = 45678,
grabmouse = true,
showcursor = defaultshowcursor,
debug = false,
showfps = not isMobile(),
gamecontroller = defaultgamecontroller,
gamecontrollertriggeraxis = false,
sound = true,
soundengine = defaultsoundengine,
persister = defaultpersister,
network = defaultnetwork,
fpslimit = defaultfpslimit,
texturesize = defaulttexturesize,
particles = defaultparticles,
red = defaultred,
green = defaultgreen,
blue = defaultblue,
}
controllerbindings = {
["ui"] = {
A = "ui_execute",
B = "ui_pop",
--X = "ui_pop",
--Y = "ui_pop",
BACK = "ui_pop",
--GUIDE = "",
--START = "",
--LEFTSTICK = "",
--RIGHTSTICK = "",
--LEFTSHOULDER = "",
--RIGHTSHOULDER = "",
DPUP = "ui_focus_prev",
DPDOWN = "ui_focus_next",
DPLEFT = "ui_focus_prev",
DPRIGHT = "ui_focus_next",
},
["map"] = {
--A = "",
--B = "",
--X = "ui_pop",
--Y = "ui_pop",
BACK = "ui_pop",
--GUIDE = "",
START = "ui_pop",
LEFTSTICK = "+move_left",
RIGHTSTICK = "+move_right",
LEFTSHOULDER = "+zoom 0.1",
RIGHTSHOULDER = "+zoom -0.1",
DPUP = "+move_up",
DPDOWN = "+move_down",
DPLEFT = "+move_left",
DPRIGHT = "+move_right",
},
}
if isMobile() or isOUYA() then
keybindings = {
["ui"] = {
AC_BACK = "ui_pop",
},
["map"] = {
MENU = "ui_push settings",
AC_BACK = "ui_pop",
},
}
if isOUYA() then
keybindings["ui"]["PAUSE"] = "ui_pop"
keybindings["map"]["PAUSE"] = "ui_pop"
end
else
keybindings = {
["ui"] = {
LEFT = "ui_focus_prev",
RIGHT = "ui_focus_next",
UP = "ui_focus_prev +",
DOWN = "ui_focus_next -",
A = "ui_focus_prev",
D = "ui_focus_next",
W = "ui_focus_prev +",
S = "ui_focus_next -",
SPACE = "ui_execute",
RETURN = "ui_execute",
ESCAPE = "ui_pop",
TAB = "ui_focus_next",
},
["map"] = {
LEFT = "+move_left",
RIGHT = "+move_right",
UP = "+move_up",
DOWN = "+move_down",
A = "+move_left",
D = "+move_right",
W = "+move_up",
S = "+move_down",
SPACE = "ui_pop",
RETURN = "ui_pop",
ESCAPE = "ui_pop",
TAB = "ui_focus_next",
PAGEDOWN = "zoom -0.1",
PAGEUP = "zoom 0.1",
},
}
keybindings["map"]["U"] = "undo"
keybindings["map"]["BACKSPACE"] = "undo"
keybindings["ui"]["."] = "screenshot"
keybindings["map"]["."] = "screenshot"
keybindings["map"]["S"] = "solve"
if isDebug() then
keybindings["map"]["F"] = "finish"
end
end
|