I am trying to call core.ukbhit() twice on my lua script but once it is called and this is set to true, the second call doesn't wait for a key to be pressed as core.ukbhit is already set to true.
How can I reset ukbhit back to false? So it enters the following while loop:
while not core.ukbhit() do
Blah...
end
If have tried the following without any luck:
core.clearCommadBuffer()
core.ukbhit(false)
Thanks
]]>