56 lines
1.8 KiB
Lua
56 lines
1.8 KiB
Lua
module('platform')
|
|
module('input')
|
|
module('scene')
|
|
module('locale')
|
|
|
|
-- Default Input bindings.
|
|
if PLATFORM == "psp" then
|
|
inputBind("up", INPUT_ACTION_UP)
|
|
inputBind("down", INPUT_ACTION_DOWN)
|
|
inputBind("left", INPUT_ACTION_LEFT)
|
|
inputBind("right", INPUT_ACTION_RIGHT)
|
|
inputBind("circle", INPUT_ACTION_CANCEL)
|
|
inputBind("cross", INPUT_ACTION_ACCEPT)
|
|
inputBind("select", INPUT_ACTION_RAGEQUIT)
|
|
inputBind("lstick_up", INPUT_ACTION_UP)
|
|
inputBind("lstick_down", INPUT_ACTION_DOWN)
|
|
inputBind("lstick_left", INPUT_ACTION_LEFT)
|
|
inputBind("lstick_right", INPUT_ACTION_RIGHT)
|
|
|
|
elseif PLATFORM == "gamecube" then
|
|
inputBind("start", INPUT_ACTION_RAGEQUIT)
|
|
-- inputBind("dpad_up", INPUT_ACTION_UP)
|
|
-- inputBind("dpad_down", INPUT_ACTION_DOWN)
|
|
-- inputBind("dpad_left", INPUT_ACTION_LEFT)
|
|
-- inputBind("dpad_right", INPUT_ACTION_RIGHT)
|
|
-- inputBind("button_b", INPUT_ACTION_CANCEL)
|
|
-- inputBind("button_a", INPUT_ACTION_ACCEPT)
|
|
-- inputBind("button_start", INPUT_ACTION_RAGEQUIT)
|
|
-- inputBind("lstick_up", INPUT_ACTION_UP)
|
|
-- inputBind("lstick_down", INPUT_ACTION_DOWN)
|
|
-- inputBind("lstick_left", INPUT_ACTION_LEFT)
|
|
-- inputBind("lstick_right", INPUT_ACTION_RIGHT)
|
|
|
|
else
|
|
if INPUT_KEYBOARD then
|
|
inputBind("w", INPUT_ACTION_UP)
|
|
inputBind("s", INPUT_ACTION_DOWN)
|
|
inputBind("a", INPUT_ACTION_LEFT)
|
|
inputBind("d", INPUT_ACTION_RIGHT)
|
|
|
|
inputBind("left", INPUT_ACTION_LEFT)
|
|
inputBind("right", INPUT_ACTION_RIGHT)
|
|
inputBind("up", INPUT_ACTION_UP)
|
|
inputBind("down", INPUT_ACTION_DOWN)
|
|
|
|
inputBind("enter", INPUT_ACTION_ACCEPT)
|
|
inputBind("e", INPUT_ACTION_ACCEPT)
|
|
|
|
inputBind("q", INPUT_ACTION_CANCEL)
|
|
|
|
inputBind("escape", INPUT_ACTION_RAGEQUIT)
|
|
end
|
|
end
|
|
|
|
localeSet(DUSK_LOCALE_EN_US)
|
|
sceneSet('scene/initial.dsf') |