libretro / libretro/RetroArch

up and left input directions not recognised using controller adapter on macOS

Open
#13,008 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

input: hid platform: osx
Dominant language
C
Stars
14.1k
Forks
2.2k
Avg merge
7h 35m
Merged PRs (30d)
51

Description

Description

Controller up and left directions not recognised when using a Genesis controller connected to the "GENESIS Controller USB" adapter

Expected behavior
  • all controller inputs should be recognised
Actual behavior
  • up and left directions not recognised
Steps to reproduce the bug
  1. plug in controller adapter "GENESIS Controller USB"
  2. plug in controller
  3. start RetroArch
  4. configure controller

The inputs do not respond even after adding the inputs manually to the autoconfig.

input_driver = "hid"
input_device = "GENESIS Controller USB"
input_vendor_id = "4754"
input_product_id = "18245"
input_start_btn = "6"
input_up_axis = "-1"    # added manually
input_down_axis = "+1"
input_left_axis = "-0"    # added manually
input_right_axis = "+0"
input_a_btn = "0"
input_b_btn = "1"
input_x_btn = "2"

Similar cfg for dinput: here

Bisect Results
  • 1.90 happens
  • 1.96 happens
  • 1.99 happens
Environment information
  • OS: macOS Big Sur 11.6 (20G165)

Notes

  • the centre position for the adapter is actually not centre (off by one? rounding error?)
  • this seems to be throwing off the detection of up/left in RA
Other tests

The following 1 app also misses up/left

The following 7 apps report up/left correctly

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the missing up and left inputs on macOS with the GENESIS Controller USB adapter, then compare the HID behavior with dinput/GENESIS_ATARI Controller USB.cfg. Inspect RetroArch's controller input and center-position handling; done means the adapter recognizes all directions, including up and left, during configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, macos
Domain
desktop-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.