Have you tried the Pocket C.H.I.P. version?
Arthur Ferrai
3
Posts
1
Topics
12
Following
A member registered Jul 31, 2015
Creator of
Recent community posts
I'm testing btnp using the following snippet:
function TIC() cls(0)
print(tostring(btnp(0,120,60))) end
"print" function renders these things:
- "false" on program start, key released;
- "true" on the frame I pressed the key;
- "false" for 2 seconds, key still pressed;
- "true" for 1 frame, key still pressed;
- "false" for 1 second, key still pressed;
- back to item 4 until I release the key;
- key pressed again, flows goes back to 2.
Is this the expected behaviour? Shouldn't step 2 return "false"?