Fix walk with WASD
This should be an alone bind, so any other control will not affect the keys.
This commit is contained in:
parent
719debfeae
commit
e15995e1eb
|
@ -89,8 +89,8 @@ function bindKeys()
|
||||||
end
|
end
|
||||||
|
|
||||||
function bindWalkKey(key, dir)
|
function bindWalkKey(key, dir)
|
||||||
g_keyboard.bindKeyDown(key, function() changeWalkDir(dir) end, gameRootPanel)
|
g_keyboard.bindKeyDown(key, function() changeWalkDir(dir) end, gameRootPanel, true)
|
||||||
g_keyboard.bindKeyUp(key, function() changeWalkDir(dir, true) end, gameRootPanel)
|
g_keyboard.bindKeyUp(key, function() changeWalkDir(dir, true) end, gameRootPanel, true)
|
||||||
g_keyboard.bindKeyPress(key, function() smartWalk(dir) end, gameRootPanel)
|
g_keyboard.bindKeyPress(key, function() smartWalk(dir) end, gameRootPanel)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue