First of all, I am a very beginner in Roku development, so I am sorry if my question is silly... I've followed all tutorials available and now I am trying to create a little app just to learn... but i get an "error" in the simplest function, and I am frustrated
function onKeyEvent(key as String, press as Boolean) as Boolean
if (key = "left") then
print "pressing left"
if (key = "right") then
print "pressing right"
What I get when I press "left":
OnKeyEvent is fired twice whenever I press a key, the first one when the key is down, and the second one when it is up. Why is this happening? Where is the mistake?