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

Summary: [PATCH] Fix NYKO AIRFLO EX Windows mapping, add Linux mapping
Product: SDL Reporter: Alice R. <petrifiedrowan>
Component: joystickAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: icculus
Version: 2.0.9Keywords: target-2.0.14
Hardware: x86_64   
OS: Windows 10   
Attachments: Patch for NYKO AIRFLO EX mappings (Windows, Linux)
Patch for NYKO AIRFLO EX mappings (Windows, Mac, Linux)

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