Figured it out! 

After a bit of research into the Linux input code, I figured out how this stuff 
works. It wasn't the functions themselves that were the issue, but something 
much simpler: the KEY_MAX constant in evdev_constants needed to be raised to 
take the new values into account (704+ as used by the Xbox 360 Wireless 
controllers).

I'll make a pull request with these new constants added, as this will enable 
better support for more joysticks in pyglet, without breaking anything. 

It'll also let me finish up my GameController api - which I've mostly finished. 
Axis and buttons automatically map now. I just need to finish the code for 
handling the dpads correctly, as the inputs are sometimes hats and sometimes 
buttons. In the end, the dpad should always be exposed in a button-like fashion.

-Ben

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to