Just a hint:
Install pygame (the python game libraries)
Here is the basic python script to add to your setup script:
from pygame.locals import *
GameLogic.Joystick = pygame.joystick.Joystick(0)
0 is your first connected joystick
Here is the basic python script to add to your character actuator:
if hasattr(GameLogic, ‘Joystick’):
x_ = GameLogic.Joystick.get_axis(0)
y_ = GameLogic.Joystick.get_axis(1)
I don’t own a joystick so I can’t test it. This is just a hint. I’m going to buy one soon.
A cleaner way could be to code a c library, maybe using SDL for portability, and make it into a python module. I’ll develop this as soon as I have a joystick.
Are you interested?