Pico-8 API Documentation
Input
Input
Input manipulation
| function | description |
|---|---|
btn([i, [p]]) | get button i state for player p |
btnp([i, [p]]) | only true when the button was not pressed the last frame; repeats every 4 frames after button held for 15 frames |
Custom Delays
Button check time delays; measured in frames @ 30FPS The default values of 15 and 4 will be used if a value of 0 is given for delay
poke(0x5F5C, delay) -- sets the initial delay before repeating; 255 will turn off repeat completelypoke(0x5F5D, delay) -- sets the repeating delay.