pygame Joystick control

Is there any way I can check in python if my joystick is present?

Or.. how do i initialize a new joystick in my python program. Sorry for the silly questions. But im new at this. :slight_smile:

Got everything working exept the joystick. :frowning:

Karl

Is there any way I can check in python if my joystick is present?

how do i initialize a new joystick in my python program.

Do you routinely ask questions about your Arduino on the python forum?

No i dont. Have never been in a python forum. My joystick controll is supposed to be directly connected to the arduino at this point. But i can shurely take my question elsewhere.

Karl

My joystick controll is supposed to be directly connected to the arduino at this point.

You are not running python on the Arduino, so the questions you are asking don't make sense. Perhaps a little context is needed.

running win7 with

python 2.5
pyserial
pygame
pywin32

The setup is explained on this site.
http://principialabs.com/arduino-python-4-axis-servo-control/

Now i have controll of servos using the shell to send comands to each servo. But i cant get the python to interact with the joystick. Joystick is working in windows.

Hope that made a bit more sense paul. :slight_smile:

Karl

My joystick controll is supposed to be directly connected to the arduino at this point.

No, it isn't.

Joystick is working in windows.

Doing what? Regardless, it appears that the hardware works.

But i cant get the python to interact with the joystick.

Then, you have a python/windows problem, not an Arduino problem.

debug'ed an got it working... :sunglasses:

debug'ed an got it working...

Excellent. But, it would be even better if you explained what the problem, and solution was, in case others encounter the same (or similar) problem.