Hi, rinnegatamante! here's the script:
Code:
if System.currentDirectory() == "/" then
System.currentDirectory("")
end
Controls.init();
while true do
Screen.waitVblankStart()
Screen.refresh()
Screen.debugPrint(10,10,"Hola mundo",Color.new(255,255,0),TOP_SCREEN);
if (Controls.check(Controls.read(),KEY_X)) then
System.exit()
end
if (Controls.check(Controls.read(),KEY_HOME)) then
System.showHomeMenu();
end
Screen.flip();
end
Also I tried with pad=Controls.read() on the loop and Controls.check(pad,KEY_...) but doesn't work
Edit: Ok, If I use Controls.check(Controls.read(),KEY_HOME) then System.exit() end it works, but if I use any other KEY, don't.