I'm testing Pygame 2 (under Ubuntu), and noticed a big change: the Pygame
window now needs to have focus to catch joystick events. This wasn't the
case in the previous Pygame version I was using (1.9.3).

For example if I run this script with Pygame 1.9.3, it catches all joystick
events no matter what window has focus:

https://raw.githubusercontent.com/denilsonsa/pygame-joystick-test/master/pygame-joystick-test.py

And if I have multiple Pygame windows, they all catch all the joystick
events.

But with Pygame 2 the window needs focus to catch the joystick events.

If anyone wants to confirm, you can install Pygame 1.9.3 with the following
command:

pip install pygame==1.9.3

Then to go back to latest version:

pip install pygame

Is there some way to make Pygame 2 catch joystick events globally?

This was a very useful feature for me.

Reply via email to