Skip to content

Conversation

@craigthomas
Copy link
Owner

This PR brings experimental joystick implementation to the emulator. Note that this current implementation uses the JInput library for joystick access and requires certain native DLL or shared object files to be loaded in the host operating system prior to working. This implementation is under development and currently only tested under Ubuntu. Note that no new unit tests were added as this experimental code may be removed in favor of a more robust system such as Lightweight Java Game Library or similar in the future.

Implement comparator to joystick voltages.

Fix reversed controls, add CA2 auto-transition when bit 4 is zero.

Add ability to set joystick via config file
@codecov
Copy link

codecov bot commented Dec 18, 2025

Codecov Report

❌ Patch coverage is 12.50000% with 175 lines in your changes missing coverage. Please review.
✅ Project coverage is 54.01%. Comparing base (d539265) to head (75274af).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...a/ca/craigthomas/yacoco3e/components/Emulator.java 0.00% 70 Missing ⚠️
.../craigthomas/yacoco3e/components/IOController.java 13.55% 51 Missing ⚠️
...java/ca/craigthomas/yacoco3e/components/PIA1a.java 22.85% 27 Missing ⚠️
...steners/SetLeftJoystickMenuItemActionListener.java 0.00% 13 Missing ⚠️
...teners/SetRightJoystickMenuItemActionListener.java 0.00% 13 Missing ⚠️
...java/ca/craigthomas/yacoco3e/components/PIA2a.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #163      +/-   ##
============================================
- Coverage     55.82%   54.01%   -1.82%     
- Complexity     1022     1029       +7     
============================================
  Files            71       73       +2     
  Lines          4650     4843     +193     
  Branches        542      583      +41     
============================================
+ Hits           2596     2616      +20     
- Misses         1975     2148     +173     
  Partials         79       79              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@craigthomas craigthomas merged commit c253bf1 into main Dec 18, 2025
2 of 4 checks passed
@craigthomas craigthomas deleted the joystick-implementation branch December 19, 2025 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants