Blender Game Engine - Ps4 Controller input
- vor 9 Jahren
Hi,
this Blend File is my little example on how to setup a Playstation 4 Controller with only one Python Script.
Download on Blendswap: http://www.blendswap.com/blends/view/78315
Download on Sketchfab: https://sketchfab.com/models/1e915e0dd27c44dba4e4b530967d96e2
The Ps4_Controller-Script includes all Buttons, the Hat and the Analog Stick recognition.
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 have the Control
(Keys_and_Mouse.py).
Have fun and feel free to use it as Template :)
this Blend File is my little example on how to setup a Playstation 4 Controller with only one Python Script.
Download on Blendswap: http://www.blendswap.com/blends/view/78315
Download on Sketchfab: https://sketchfab.com/models/1e915e0dd27c44dba4e4b530967d96e2
The Ps4_Controller-Script includes all Buttons, the Hat and the Analog Stick recognition.
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 have the Control
(Keys_and_Mouse.py).
Have fun and feel free to use it as Template :)