mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
Fix walk with WASD
This should be an alone bind, so any other control will not affect the keys.
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user