You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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())
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?
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 andpygame.get_sdl_version()
returns 2.0.14The text was updated successfully, but these errors were encountered: