Forgot to provide the widget for walk key bind, thanks conde2!
This commit is contained in:
parent
1ea2b380ca
commit
529b646316
|
@ -89,15 +89,15 @@ function bindKeys()
|
||||||
end
|
end
|
||||||
|
|
||||||
function bindWalkKey(key, dir)
|
function bindWalkKey(key, dir)
|
||||||
g_keyboard.bindKeyDown(key, function() changeWalkDir(dir) end)
|
g_keyboard.bindKeyDown(key, function() changeWalkDir(dir) end, gameRootPanel)
|
||||||
g_keyboard.bindKeyUp(key, function() changeWalkDir(dir, true) end)
|
g_keyboard.bindKeyUp(key, function() changeWalkDir(dir, true) end, gameRootPanel)
|
||||||
g_keyboard.bindKeyPress(key, function() smartWalk(dir) end)
|
g_keyboard.bindKeyPress(key, function() smartWalk(dir) end, gameRootPanel)
|
||||||
end
|
end
|
||||||
|
|
||||||
function unbindWalkKey(key)
|
function unbindWalkKey(key)
|
||||||
g_keyboard.unbindKeyDown(key)
|
g_keyboard.unbindKeyDown(key, gameRootPanel)
|
||||||
g_keyboard.unbindKeyUp(key)
|
g_keyboard.unbindKeyUp(key, gameRootPanel)
|
||||||
g_keyboard.unbindKeyPress(key)
|
g_keyboard.unbindKeyPress(key, gameRootPanel)
|
||||||
end
|
end
|
||||||
|
|
||||||
function terminate()
|
function terminate()
|
||||||
|
|
Loading…
Reference in New Issue