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
P#24445 2016-07-03 14:14 ( Edited 2016-07-03 18:14)


[Please log in to post a comment]