Is it possible to vibrate the controller using GCP?
I’ve browsed the interweb quite a bit, but I couldn’t really find anything.
I did check if my controller even supports vibration, so I downloaded Controller Vibration Tester (CVT), which demonstrated that it indeed does work.
Thanks in advance!
Do you know of any other way of doing this?
@TechnicJelle and @quark it is possible, but I tried it with a wired Xbox one controller and a Dualshock 4, only the dualshock worked. If the controller.getNumberOfRumblers() returns a value other than 0 it is possible.
to make it clearer:
control = ControlIO.getInstance(this);
controller = control.getMatchedDevice("DS4");
float rt = map(controller.getSlider("RT").getValue(), -1, 1, 0, 4);
int nRumble = controller.getNumberOfRumblers();
Ahww… I guess my controller doesn’t support it…
I’ll have to try some other controllers then.