Fix walk with WASD

This should be an alone bind, so any other control will not affect the
keys.
master
Joao Pasqualini Costa 11 years ago
parent 719debfeae
commit e15995e1eb

@ -89,8 +89,8 @@ function bindKeys()
end
function bindWalkKey(key, dir)
g_keyboard.bindKeyDown(key, function() changeWalkDir(dir) end, gameRootPanel)
g_keyboard.bindKeyUp(key, function() changeWalkDir(dir, true) end, gameRootPanel)
g_keyboard.bindKeyDown(key, function() changeWalkDir(dir) end, gameRootPanel, true)
g_keyboard.bindKeyUp(key, function() changeWalkDir(dir, true) end, gameRootPanel, true)
g_keyboard.bindKeyPress(key, function() smartWalk(dir) end, gameRootPanel)
end

Loading…
Cancel
Save