We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4942 - Linux: enhance detection of gamepads
Summary: Linux: enhance detection of gamepads
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: HG 1.2
Hardware: All Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-13 18:11 UTC by Paul Cercueil
Modified: 2020-09-22 20:01 UTC (History)
1 user (show)

See Also:


Attachments
Patch to fix the issue (1.10 KB, text/plain)
2020-01-13 18:11 UTC, Paul Cercueil
Details
patch to fix warning (746 bytes, patch)
2020-09-22 18:52 UTC, Ozkan Sezer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Cercueil 2020-01-13 18:11:26 UTC
Created attachment 4158 [details]
Patch to fix the issue

Detect gamepads that use a D-pad instead of an analog stick.
Comment 1 Ozkan Sezer 2020-09-22 02:07:02 UTC
This patch is in. Thanks.
http://hg.libsdl.org/SDL/rev/1c7030e282b0
Comment 2 Ozkan Sezer 2020-09-22 02:07:27 UTC
closing.
Comment 3 Ozkan Sezer 2020-09-22 18:52:40 UTC
Created attachment 4467 [details]
patch to fix warning

Paul:  Will apply the attached patch to fix -Wparentheses
warning after your patch.  OK?
Comment 4 Paul Cercueil 2020-09-22 19:28:57 UTC
(In reply to Ozkan Sezer from comment #3)
> Created attachment 4467 [details]
> patch to fix warning
> 
> Paul:  Will apply the attached patch to fix -Wparentheses
> warning after your patch.  OK?

Sure, no problem.
Comment 5 Ozkan Sezer 2020-09-22 20:01:01 UTC
https://hg.libsdl.org/SDL/rev/6eaf4aee7940