Go to file
QwertyChouskie 1414dbf29d SDL_hidapi_xbox360.c: Fix Y axis inversion on macOS (#15792)
Originally, macOS had opposite Y axis inversion as every other platform, likely to correct for an issue with the virtual gamepad reported by the old 360Controller driver.

Wired Xbox 360 controllers using native macOS drivers were first reported to be broken in https://github.com/libsdl-org/SDL/issues/11002.  The inversion was removed in 7da728a642, presumably breaking 360Controller usage, but fixing wired 360 controller using the new native support in macOS 15 and above.  However, this change was reverted without explanation in d7b1ba1bfc which added explicit support for the Steam Virtual Gamepad.  Presumably, Steam on macOS reports inverted Y axes to match what SDL expected on the platform.  However, this reversion broke the native macOS controller support.  The incorrect inversion also breaks using off-brand 360-class gamepads via the libusb backend of HIDRAW.

Backport of 157c839139 (https://github.com/libsdl-org/SDL/pull/15792) to SDL2
2026-06-11 16:12:15 -07:00
2026-01-01 09:51:07 -08:00
2025-12-14 07:48:57 +00:00
2026-05-25 18:47:32 +03:00
2022-11-17 10:43:45 +01:00
2024-11-02 01:58:46 +01:00
2026-05-25 18:47:32 +03:00
2026-05-25 18:47:32 +03:00
2026-05-25 18:47:32 +03:00
2026-01-01 09:51:07 -08:00
2024-09-14 21:13:56 -07:00

Simple DirectMedia Layer (SDL) Version 2.0

https://www.libsdl.org/

Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games including Valve's award winning catalog and many Humble Bundle games.

More extensive documentation is available in the docs directory, starting with README.md

Enjoy!

Sam Lantinga (slouken@libsdl.org)

Description
Simple Directmedia Layer
Readme 207 MiB
Languages
C 87.9%
C++ 4%
Objective-C 3.4%
CMake 1.8%
Java 0.7%
Other 1.9%