PS4 Controller Python Script - Blender Game Engine

Опубликовано: 03 Май 2026
на канале: 3DHaupt
4,899
32

Here is an example on how to set up a Playstation 4 controller with only one python script.

I have uploaded this on CG-Trader for free download:
http://www.cgtrader.com/free-3d-model...

For the Blender Game Engine (Blender 2.74).

PS4 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 provide the input (Keys_and_Mouse.py).

Have fun :)

----------------------------------------------------------------------------------------------
Just some websites I'm using and some links
where you can download my 3d stuff
for your projects :)
----------------------------------------------------------------------------------------------
My Blog:
https://3dartdh.wordpress.com

My 3d models and animations at Sketchfab:
https://sketchfab.com/dennish2010

My gallery at Artstation:
https://www.artstation.com/artist/den...

My public profile at Blendswap:
http://www.blendswap.com/user/DennisH...

My public profile at Sharecg:
http://www.sharecg.com/pf/full_upload...

My public profile at CGTrader:
https://www.cgtrader.com/dennish2010

My public profile at Tf3dm:
http://tf3dm.com/user/3dhaupt

My new Youtube Channel:
   / 3dhaupt  

My old Youtube Channel:
   / dennish2010  

My public profile at Minds:
https://www.minds.com/DennisH2010

My public profile at Myminifactory:
https://www.myminifactory.com/de/user...

My public profile at 3dexport:
https://de.3dexport.com/dennish2010

My public profile at Deviantart:
http://dennish2010.deviantart.com
----------------------------------------------------------------------------------------------
Have fun!