Log In  


If you run a cart, then hit <esc>, followed by RESUME, the btnp function fails.

This simple program demos the issue.

hitbutton=false

function _init()
end

function _update()
 hitbutton=false
 if (btn(4)) hitbutton=true
 if (btnp(5)) hitbutton=true
end

function _draw()
 cls()
 if (hitbutton) print("button",60,64,7)
end
1



[Please log in to post a comment]