aboutsummaryrefslogtreecommitdiff
path: root/src/audio.c
AgeCommit message (Collapse)Author
2026-10-29Support SDL 3.2Nicholas Rodrigues Lordello
2026-10-28Fix Relative Mouse MotionNicholas Rodrigues Lordello
We do some fixes, namely fixing relative mouse motion which worked very differently compared to mouse motion outside of pointer lock. This appears to be something built in to PICO-8 itself (as evident by keeping track of `STAT(32-33,38-39)` under pointer lock: PICO-8 scales relative mouse motion by a factor of `.25` before adding to the absolute mouse position. Additionally, we support running PICO-w on systems with no audio playback.
2026-10-26Implement Audio Device and Remaining ASM ConstsNicholas Rodrigues Lordello
We abstract over SDL's audio subsystem and implement an audio device that fits into PICO-8's model. We fixed the implementation for the PICO-8 window focus and key buffer and can now actually boot into PICO-8 games with working sounds and controls! There are a few issues that remain: 1. There is no "exit" option in the pause menu, I think it thinks that we are on the BBS, and maybe there is someway to fix this? 2. The clipboard textarea is not implemented at all; we should keep a text buffer in `pw_input` and interact with SDL's clipboard system 3. Multicart's don't always work; in particular Undune II tries to download from the BBS, I would like to shim this somehow to support both `LOAD("FOO.P8")` and `LOAD("#FOO")` forms transparently.