Files
RetroArch/samples/input/ctr_joypad
LibretroAdmin 82d9cdbb32 3DS, Xbox, DOS joypad drivers: a pad is there only on a port that has one
- 3DS: the console's own controls are a pad on port 0, held or not. It
  answered from the buttons held, so an idle 3DS had no pad and while
  anything was held all sixteen ports had one.
- Original Xbox: query_pad, the name and the axis read are bounded by
  the four ports the console has; ports past them read past the
  driver's arrays.
- DOS: the driver reads no pad, so no port has one; it answered yes for
  all sixteen. Its button read fetched the keyboard state for nothing
  and is now the zero it always returned.

samples/input/ctr_joypad and samples/input/dos_joypad are new lanes,
and xdk_joypad checks the ports past the fourth. The 3DS stubs gain
libctru's HID and C-stick declarations, with types.h owning the shared
scalar names.
2026-10-13 22:34:39 +02:00
..