Skip to content

JoystickXL 0.4.0

Compare
Choose a tag to compare
@fasteddy516 fasteddy516 released this 20 Aug 03:42
· 46 commits to main since this release

This release includes the following improvements:

  • Input sources are no longer limited to Pin or VirtualInput objects - you can assign any object with a .value attribute of the correct type (bool for buttons, int for axes) as an input source. This makes it much easier to work directly with many of the off-board peripherals that already have CircuitPython drivers. The example section has code demonstrating the use of an MCP23017 GPIO expander, an MCP3008 analog-to-digital converter and an MPR121 capacitive touch breakout.

  • The TestConsole() now supports using a digital input to resend the last typed command. This helps when testing an application that has to remain in focus in order to capture joystick events.

  • The TestConsole() axis + and - commands have been replaced by u and d, and they now ramp the axis up/down rather than just jump momentarily to the min/max value.

  • 'TestConsole()' now includes a p command to set the press time for button/hat triggers. (Default press time is 0.25s.)

  • The .suppress attribute of input objects has been renamed to bypass. It sounds less draconian.

  • Axes 7 and 8 were previously swapped if num_axes was set to 8. This has been corrected.

  • The calculated idle position of axis objects was previously off by 1 (127 instead of 128). This has been corrected,

  • The documentation has been improved, and a number of new examples have been added.