This Blend File is a example on how to setup a Playstation 4 Controller with only one Python Script.
The Script controls all Buttons, the Hat and the Analog Stick input, also the sensibility of the Analog Stick will be recognized.
Controls:
Left Analog-Stick or Hat = Moves the Ball
Right Analog-Stick = Camera Control
X-Button = Jump (Hold the X-Button for slower falling)
R1-Button = Turbo
If no Ps4-Controller is connected, the Mouse and the Keyboard provides the input (Keys_and_Mouse.py).
PS4 Controller Python Script - Blender Game Engine
https://www.youtube.com/watch?v=_Kh2ar6xRak
By the way siege, you may be able to test it. I set up game pad support on an fps and I believe it worked for both ps3 and xbox 360, so it may also work with this coding... Just a thought.
I will purchase a PS4 controller ASAP, and try this script out ; Thanks a lot for sharing this... I just tried it out with a Microsoft controller and a few buttons seem to be responding, not the right ones, but it sort of works :)
Cool, sounds like it would be easy to convert it for a Microsoft controller, its only a sorting thing I guess.
Works with a xbox 360 controller. One axis that controls the camera is wrong and the keys are not the same. Should be easy to edit in the script.
very nice! thanks! works like a charm on my macbookpro and ds4 over bluetooth! :-)
I will try to use it in a self made game in blender. thanx in advance.
Blender creates video games for PC and there is an addon that can create video games for all types of consoles
Good Day! Thank you for this amazing little script! Is there a way for it to work with Blender 3D when animating the 3D camera in a scene to simulate that handheld camera move as opposed to manually moving the camera with a mouse?
Thank you for sharing!
Video games are made with Blender for PCs, and there is an extension that can make games for other consoles. Want to know the process of getting rid of palm trees? Check it out!
Unfortunately, I do not have an Xbox 360 controller and now I wonder how different the input could be. I want an Xbox 360 controller :D, maybe I find one in a second hand store :)