2
\$\begingroup\$

I am a new developer and want to write a game that uses a gamepad like the dualshock 3 I want to write it in python although am willing to learn a little C/C++

I need to identify the buttons and rotaters and send feedback like haptics not to mention the motion control

\$\endgroup\$
3
\$\begingroup\$

Well, SDL has support for controllers (joysticks) and pygame is a python wrapper for SDL so in theory it should support joysticks. There does seem to be support (http://www.pygame.org/docs/ref/joystick.html) for joysticks but I cannot say how well a dualshock 3 controller maps to it. (Theres some issues around mapping the Xbox 360 controller for example)

\$\endgroup\$
2
\$\begingroup\$

You can: http://www.pygame.org/docs/ref/joystick.html

Also: http://thp.io/2010/archive/joystick-gstreamer.py

Extract:
Control GStreamer filters in a pipeline using analog sticks of gamepads Copyright (c) 2010-12-22 Thomas Perl

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.