The code has been tested on the Raspberry Pi 4, Ubuntu and Windows 10. I’d value any feedback. The assembler programs I wrote in the mid 80’s that use sound and joysticks seem to work ok

The features are documented at: https://github.com/SinclairQL/sQLux/blo ... s/sqlux.md, but in brief:
Sound
Sound can be generated either through QDOS MT.IPCOM calls, or SuperBASIC BEEP commands. sQLux attempts to faithfully reproduce the sound behaviour of the original BBQL, this includes support for negative values of grd_y, including the correct behaviour for -8. Behaviour when either pitch or pitch_2 equals 255 is also correctly emulated.
All optional parameters, including Fuzzy and Random, are fully supported. The slight click that occurs in the original QL when a pitch change occurs (even for a pitch change of 0) is emulated.
Many thanks to Silvestor from the QLForum for the detailed disassembly of the QL 8049 sound code.
Joysticks
Analogue or digital USB joysticks are supported. Axis 0 and axis 1 of the joystick are mapped. Moving the joystick generates key presses. All buttons on the joystick are mapped to the fire key.
Joystick 1 (assumed connected through CTL1) maps to the cursor keys and spacebar. Joystick 2 (assumed connected through CTL2) maps to F1 through to F5.