Playing around with the #KallistiOS controller API on #Dreamcast, and wrote some sample code. It's neat that the BIOS font has built-in glyphs for all the button presses. The code itself is pretty self-explanatory.
https://github.com/jpeach/dreamcast-playground/tree/main/controller
I spent a little bit of time playing around with the #kallistios controller API on #dreamcast and wrote some sample code. It's neat that the bios fond that built-in glyphs for all the standard controller buttons, and also that adding and removing controllers just works without any extra setup or config.
https://github.com/jpeach/dreamcast-playground/blob/main/controller/controller.cpp