After enabling [SonarCloud](https://sonarcloud.io/project/issues?resolved=false&id=getjoystick_joystick-js) – we've found several code quality issues that should be addressed. Please refer to the results to see the scope, only actionable changes are left in SonarCloud, others are closed with proper descriptions.