ReePrime China
Blender Game Engine - Ps4 Controller input

此内容来自第三方平台 (Dailymotion)。如果此视频侵犯了您的版权,请使用 立即删除 工具。

Blender Game Engine - Ps4 Controller input

177 次观看 08:57 Dennish2010

描述

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 :)