I’d start by looking at the pyglet documentation and import the pyglet joystick directly (forget about using the psychopy class one until we can confirm the pyglet one works)
To debug the pyglet error message in psychopy I would insert a print statement just before the error occurs (in win.flip()
?) to find out what similar-looking methods the pyglet joystick does have (maybe they just renamed dispatch_events
to something else?)