• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

unbinding Key issue

Evil Hero

Legacy Member
TFS Developer
Joined
Dec 12, 2007
Messages
1,254
Solutions
27
Reaction score
721
Location
Germany
Hello guys,

I can't seem to figure out how to unbind keys I have been set.
I'm trying to deactivate the console and while it's deactivated I allow to walk with WASD, that stuff is working.
When I activate the console it wont unbind them somehow.
tried it several ways:
Lua:
g_keyboard.unbindKeyDown('W')
g_keyboard.unbindKeyUp('W')
g_keyboard.unbindKeyDown('W', function() modules.game_interface.changeWalkDir(North) end, modules.game_interface.gameRootPanel)
g_keyboard.unbindKeyUp('W', function() modules.game_interface.changeWalkDir(North) end, modules.game_interface.gameRootPanel)
I somehow can't figure out what's wrong
hopefully someone of you guys can help me with it :)



Kind regards, Evil Hero.
 
You don't need to provide the function for unbindKey~ only for bindKey~

Not sure why its not unbinding, possible you are binding -> unbinding then it is binding again without knowing.
 
Back
Top