Fix walk with WASD

This should be an alone bind, so any other control will not affect the
keys.
This commit is contained in:
Joao Pasqualini Costa 2013-08-17 21:56:37 -03:00
parent 719debfeae
commit e15995e1eb
1 changed files with 2 additions and 2 deletions

View File

@ -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