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 4534 - [PATCH] Fix NYKO AIRFLO EX Windows mapping, add Linux mapping
Summary: [PATCH] Fix NYKO AIRFLO EX Windows mapping, add Linux mapping
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: 2.0.9
Hardware: x86_64 Windows 10
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.14
Depends on:
Blocks:
 
Reported: 2019-03-03 20:21 UTC by Alice R.
Modified: 2020-12-09 03:13 UTC (History)
1 user (show)

See Also:


Attachments
Patch for NYKO AIRFLO EX mappings (Windows, Linux) (4.34 KB, text/plain)
2019-03-03 20:21 UTC, Alice R.
Details
Patch for NYKO AIRFLO EX mappings (Windows, Mac, Linux) (6.21 KB, patch)
2019-03-08 00:32 UTC, Alice R.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alice R. 2019-03-03 20:21:55 UTC
Created attachment 3687 [details]
Patch for NYKO AIRFLO EX mappings (Windows, Linux)

The NYKO AIRFLO EX mapping in SDL_gamecontrollerdb.h is pretty messed up, so here's a fixed mapping. I've also added the corresponding Linux mapping for this controller.

Details: This controller has a fairly standard DualShock-clone layout. However, the mapping has arbitrary stick/shoulder buttons assigned to the axes that should be leftx/rightx/righty. Additionally, it doesn't have mappings for leftx/lefty/rightx/righty. From old SDL_GameControllerDB commits it appears these were once mapped to arbitrary hat values (including diagonals). I'm not convinced this mapping was ever tested with a working NYKO AIRFLO EX.

Corresponding SDL_GameControllerDB issue: https://github.com/gabomdq/SDL_GameControllerDB/issues/200

These fixed mappings were created by GitHub users eddieray and Spectere.
Comment 1 Alice R. 2019-03-08 00:32:17 UTC
Created attachment 3692 [details]
Patch for NYKO AIRFLO EX mappings (Windows, Mac, Linux)

Fix the Windows mapping for this controller and add Mac/Linux mappings.
Comment 2 Sam Lantinga 2020-12-09 03:13:49 UTC
Patch added, thanks!
https://hg.libsdl.org/SDL/rev/5b109c43d5f0