Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MadCatz Mice are not detected as Joysticks in SDL2, but do in SDL #1981

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 1 comment
Closed
Assignees
Milestone

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: 2.0.2
Reported for operating system, platform: Windows 7, x86_64

Comments on the original bug report:

On 2015-09-27 20:21:02 +0000, Arthur Moore wrote:

Created attachment 2277
udevadm info

MadCatz mice are multi function gaming mice. Linux treats them as both a mouse and a joystick. Side note, Windows only sees them as mice. Unfortunately, while SDL1 detects the joystick part, SDL2 does not.

src/joystick/linux/SDL_sysjoystick.c:367 has
/* !!! FIXME: only finds sticks if they're called /dev/input/event[0..31] */

It looks like the mouse is reported as an event and mouse, while the joystick is just reported as js0.

On 2017-08-12 23:12:45 +0000, Sam Lantinga wrote:

Ryan, weren't we going to resurrect the js0 code?

@slouken slouken self-assigned this Nov 10, 2021
@slouken slouken added this to the 2.0.18 milestone Nov 10, 2021
@slouken
Copy link
Collaborator

slouken commented Nov 11, 2021

You can set the hint SDL_HINT_LINUX_JOYSTICK_CLASSIC to enable the classic /dev/input/js* joysticks as of 1c78b08

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

No branches or pull requests

2 participants