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"?