# How can I implement a PlayStation Controller (with rumble)

**URL:** https://discourse.processing.org/t/how-can-i-implement-a-playstation-controller-with-rumble/30662
**Category:** Processing
**Created:** [June 12, 2021, 1:32pm UTC](https://discourse.processing.org/t/how-can-i-implement-a-playstation-controller-with-rumble/30662 "2021-06-12T13:32:42Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![EinsMalteHH](https://avatars.discourse-cdn.com/v4/letter/e/ecd19e/32.png) [@EinsMalteHH](https://discourse.processing.org/u/EinsMalteHH)
#### Post date: [June 12, 2021, 1:32pm UTC](https://discourse.processing.org/t/how-can-i-implement-a-playstation-controller-with-rumble/30662/1 "2021-06-12T13:32:42Z")

</div>

I have tried using Game Control plus, and it worked okay… But It doesn’t seem to work for rumbling my PlayStation 4 Controller (Dual shock 4)

---

<div class="post-metadata">

### Author: ![TimeLex](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/timelex/32/12869_2.png) [@TimeLex](https://discourse.processing.org/u/TimeLex)
#### Post date: [June 12, 2021, 7:30pm UTC](https://discourse.processing.org/t/how-can-i-implement-a-playstation-controller-with-rumble/30662/2 "2021-06-12T19:30:19Z")

</div>

I’ve already tried that and it worked. Did you changed something to the sample code?

---

<div class="post-metadata">

### Author: ![EinsMalteHH](https://avatars.discourse-cdn.com/v4/letter/e/ecd19e/32.png) [@EinsMalteHH](https://discourse.processing.org/u/EinsMalteHH)
#### Post date: [June 12, 2021, 8:42pm UTC](https://discourse.processing.org/t/how-can-i-implement-a-playstation-controller-with-rumble/30662/3 "2021-06-12T20:42:39Z")

</div>

Could you give me some code please? I have implemented the controller to control stuff but rumble / vibrations would be nice. Thanks in advance.

---

<div class="post-metadata">

### Author: ![TimeLex](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/timelex/32/12869_2.png) [@TimeLex](https://discourse.processing.org/u/TimeLex)
#### Post date: [June 13, 2021, 6:02am UTC](https://discourse.processing.org/t/how-can-i-implement-a-playstation-controller-with-rumble/30662/4 "2021-06-13T06:02:15Z")

</div>

Oh, I didn’t see that it should vibrate. Unfortunately, I don’t know either, but I’ll see if I can find out how to do it.

---

<div class="post-metadata">

### Author: ![TimeLex](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/timelex/32/12869_2.png) [@TimeLex](https://discourse.processing.org/u/TimeLex)
#### Post date: [June 13, 2021, 6:28am UTC](https://discourse.processing.org/t/how-can-i-implement-a-playstation-controller-with-rumble/30662/5 "2021-06-13T06:28:43Z")

</div>

I’ve looked at an [earlier entry](https://discourse.processing.org/t/game-control-plus-bluetooth-controller/5268/2) about it and it seems like Quark (the developer of the library) only used JInput. This means that you can probably only record controller data, but not send it commands (such as vibrate).

---

<div class="post-metadata">

### Author: ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)
#### Post date: [June 13, 2021, 9:28am UTC](https://discourse.processing.org/t/how-can-i-implement-a-playstation-controller-with-rumble/30662/6 "2021-06-13T09:28:43Z")

</div>

> [@TimeLex](#):
>
> it seems like Quark (the developer of the library) only used JInput

I didn’t develop the core library so any limitations such as this is down to the original developer. I simply extended updated the API for Processing 3.

For more information about GCP you might look at my [website](http://www.lagers.org.uk/gamecontrol/index.html).
