Skip to content

picocalc-extras 2.2: gamepads.

Choose a tag to compare

@ctorkildson-netizen ctorkildson-netizen released this 10 Nov 22:41
· 22 commits to main since this release
ffd8281

picocalc-extras 2.2 adds a Bluetooth gamepad, alongside the keyboard and mouse.

btpair 2.2

  • G pairs a gamepad, classic or BLE. Gamepads are recognised in the search list and marked "(gamepad)".
  • Once a gamepad is connected, the first page shows its sticks, D-pad, triggers and the buttons held, by number: handy for finding out how a pad numbers its buttons.
  • F forgets any one device, and asks which when more than one is paired.

For programs (bluetooth/)

  • btkbd_gamepad(&pad) gives the gamepad as it is now: up to 32 buttons, both sticks (−127 to 127), analogue triggers (0 to 255) and the D-pad. See bluetooth/README.md.
  • pairing.dat is still PBK2, with new tags GPD0 (classic) and GPL0 (BLE) for the gamepad. Older programs ignore them, and existing keyboard and mouse pairings carry over.

Tried with

  • A Sony PS4 controller (classic Bluetooth), with the Logitech K380 keyboard and M720 mouse still pairing and reconnecting as before.
  • An 8BitDo M30, by Giovanni Pozzobon in PicoCalc Desktop 1.0.0. Thanks, Giovanni.

If a gamepad misbehaves, press D then F5 in btpair, and send the two files it saves in /screenshots.