I'm trying to write a Blender script that uses joystick input to move the viewport while editing. I tried using Pygame and I've looked at Pyglet, but it looks like they both only work under Python 2.x, which isn't compatible with Blender, which uses 3.x. I keep looking for 3.x-compatible joystick libraries but haven't found any.
Blender already uses joystick input for the game engine, so how hard would it be to hook that up to the editor, instead? Or is there some other way to get joystick input in Python that's 3.x-friendly? For what it's worth, I'm running Ubuntu 12.04 and Blender 2.74RC2, with Python 3.4.2.
I'd appreciate any help I can get on this. Thanks for your time.