Adjust how deadzones work
Some checks failed
Some checks failed
This commit is contained in:
@@ -30,7 +30,7 @@ elseif DOLPHIN then
|
||||
inputBind("lstick_left", INPUT_ACTION_LEFT)
|
||||
inputBind("lstick_right", INPUT_ACTION_RIGHT)
|
||||
|
||||
else
|
||||
elseif LINUX then
|
||||
if INPUT_KEYBOARD then
|
||||
inputBind("w", INPUT_ACTION_UP)
|
||||
inputBind("s", INPUT_ACTION_DOWN)
|
||||
@@ -70,6 +70,8 @@ else
|
||||
inputBind("mouse_x", INPUT_ACTION_POINTERX)
|
||||
inputBind("mouse_y", INPUT_ACTION_POINTERY)
|
||||
end
|
||||
else
|
||||
print("Unknown platform, no default input bindings set.")
|
||||
end
|
||||
|
||||
sceneSet('scene/minesweeper.lua')
|
||||
@@ -178,21 +178,8 @@ function sceneDispose()
|
||||
end
|
||||
|
||||
function sceneUpdate()
|
||||
if inputIsDown(INPUT_ACTION_RIGHT) then
|
||||
x = x + 1
|
||||
end
|
||||
|
||||
if inputIsDown(INPUT_ACTION_LEFT) then
|
||||
x = x - 1
|
||||
end
|
||||
|
||||
if inputIsDown(INPUT_ACTION_DOWN) then
|
||||
y = y + 1
|
||||
end
|
||||
|
||||
if inputIsDown(INPUT_ACTION_UP) then
|
||||
y = y - 1
|
||||
end
|
||||
x = x + inputAxis(INPUT_ACTION_LEFT, INPUT_ACTION_RIGHT)
|
||||
y = y + inputAxis(INPUT_ACTION_UP, INPUT_ACTION_DOWN)
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user