1

I'm trying to find a way to use my PS3 controller in python, and just searching around I've only found ways to do this on a Raspberry Pi or on some linux software, but I'm just using windows here.

This could either be some library made for controllers or possibly I don't mind getting the input directly from the USB somehow and programming that myself

4
  • Have you tried using pygame? Commented Dec 20, 2016 at 20:13
  • @MattClark I've tried using pygame but it didn't really work, I tried fixing that but all the answers were given to Raspberry Pi users Commented Dec 20, 2016 at 20:15
  • But python is python, what made the answers specific to the RPi and not applicable to you? Commented Dec 20, 2016 at 20:16
  • there seems to be some kind of installation I need to do first before it can work with Pygame Commented Dec 20, 2016 at 20:18

1 Answer 1

2

The inputs library on PyPI seems aimed at this.

Sign up to request clarification or add additional context in comments.

6 Comments

@MattClark Dude, there is no minimum requirement for an answer if it solves the OP's problem. "I'm trying to accomplish X" "here's a library that lets you accomplish X" is a perfectly valid answer. If you think there is a better answer, provide one yourself.
Yeah that answer is exactly what I needed, thanks a lot.
@Amber There sort of is: "Why and how are some answers deleted? (...) - barely more than a link to an external site". If the question was "What tool can I use to do X?", then your answer would be acceptable, but we all know that this question would be off-topic. An actual good answer would be to provide an example on how to use that library. I do think your answer is helpful now, but we all know that external resources have the tendency to go offline.
@VincentSavard If you want to go by the letter of the rule rather than the spirit, perhaps. However there's a far cry difference between pointing to a package in the official package repository and linking to a random blog post.
I am not trying to argue that your answer is not correct, I am just arguing that it could use more content. Both this question could be closed for asking for libraries, and your answer could be deleted as being strictly a link. Both question and answer are probably already in these review queues.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.