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

SDL 2.0.16 breaks Playstation DualShock 4 controller support on Mac (2720) #1400

Closed
GalacticEmperor1 opened this issue Feb 12, 2023 · 1 comment
Labels
bug Not working as intended joystick pygame.joystick macOS

Comments

@GalacticEmperor1
Copy link
Collaborator

Issue №2720 opened by rethanon at 2021-09-15 21:51:38

While working on a personal project I noticed that in using Pygame 2.0.2.dev2/dev3 my Playstation DualShock 4 (DS4) controllers were working on Windows but not on Mac. With the help of @Starbuck5 I was able to run various tests that confirmed the following:

Windows test machine - Windows 10 Home 21H1
Mac test machine - MacOS Big Sur 11.6 (2015 Intel Macbook Pro)
Python - version 3.9.6

Pygame 2.0.1 (using default SDL 2.0.14)
Windows & Mac - DS4 controller working fine (pygame.joystick.get_count() returns 1 and controller can move "character" around the screen in a test program)

Pygame 2.0.2.dev2/dev3 (using default SDL 2.0.16)
Windows - DS4 controller working fine (pygame.joystick.get_count() returns 1 and controller can move "character" around the screen in a test program)
Mac - DS4 controller not detected (pygame.joystick.get_count() returns 0)

Pygame 2.0.1 (using SDL 2.0.16)
Mac - DS4 controller not detected (pygame.joystick.get_count() returns 0)

Test program:
import pygame
pygame.init()
print(pygame.joystick.get_init())
print(pygame.joystick.get_count())

Result when using SDL 2.0.16:
True
0


Comments

# # ankith26 commented at 2021-11-27 03:42:40

SDL 2.0.18 pre-release is out now! Can you please test out with that, and that should hopefully fix this issue? If it does not, perhaps opening an SDL issue before SDL 2.0.18 full release is the way to proceed?


# # alphavector commented at 2022-01-06 11:09:08

I checked, with SDL version 2.0.18 the ps4 controller is not detected by pygame. I installed SDL 2.0.14 from the sources and the controller works


# # sabard commented at 2022-06-08 02:46:52

I was able to replicate this on:

Big Sur 11.2.1 (2019 Intel MBP)
Python 3.8.12
Pygame 2.1.2

Downgrading to pygame==2.0.1 fixed it for me and pygame.get_sdl_version() returns 2.0.14

@GalacticEmperor1 GalacticEmperor1 added bug Not working as intended joystick pygame.joystick macOS SDL2 labels Feb 12, 2023
@MightyJosip MightyJosip removed the SDL2 label Feb 15, 2023
@zoldalma999
Copy link
Member

Duplicate of #1524

@zoldalma999 zoldalma999 marked this as a duplicate of #1524 Sep 30, 2023
@zoldalma999 zoldalma999 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended joystick pygame.joystick macOS
Projects
None yet
Development

No branches or pull requests

3 participants