I understand how to go about it but it seems buggy.
Code: Select all
function inputHandler()
screen.waitVblankStart()
input = Controls.read()
if mode == 1 then
if input:up() then
if row == 2 then
row = 1
elseif row == 3 then
row = 2
elseif row == 4 then
row = 3
end
elseif input:down() then
if row == 1 then
row = 2
elseif row == 2 then
row = 3
elseif row == 3 then
row = 4
end
elseif input:cross() then
select()
end
elseif mode == 2 then
if input:cross() or input:circle() or input:triangle() or input:square() then
mode = 1
end
end
end
Now here's the issue, I press down or up and sometimes it's like I didn't even press anything. Other times it seems to skip ahead, going from row 1 to row 3 or 4 with just one press.
Any ideas?