Hello
I've tried using gamepad
(http://gaming.logitech.com/product/f710-wireless-gamepad) on my linux
laptop, but I cannot initialize it.
I looked function for creating joystick in linux (pyglet/input/evdev.py)
and here I see only BTN_JOYSTICK without BTN_GAMEPAD
def _create_joystick(device):
# Look for something with an ABS X and ABS Y axis, and a joystick 0
button
have_x = False
have_y = False
have_button = False
for control in device.controls:
if control._event_type == EV_ABS and control._event_code == ABS_X:
have_x = True
elif control._event_type == EV_ABS and control._event_code == ABS_Y:
have_y = True
elif control._event_type == EV_KEY and \
* control._event_code == BTN_JOYSTICK:*
have_button = True
if not (have_x and have_y and have_button):
return
return Joystick(device)
And I suppose bolded line should be like this (at least it worked on my
linux):
control._event_code in (BTN_JOYSTICK, BTN_GAMEPAD):
And I just wondering maybe I can make patch for it, or maintainer just
replace that line of code?
Thanks.
--
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/groups/opt_out.