GameControlPlus - Controller Vibration?

@quark
Hello,
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! :smiley:

Not to my knowledge. :disappointed:

Do you know of any other way of doing this?

No, sorry. :disappointed:

@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.

1 Like

to make it clearer:


import net.java.games.input.*;
import org.gamecontrolplus.*;
import org.gamecontrolplus.gui.*;

ControlIO control;
ControlDevice controller;
void setup(){
 size(480, 480);
  control = ControlIO.getInstance(this);
  controller = control.getMatchedDevice("DS4");
}

void draw(){

  float rt = map(controller.getSlider("RT").getValue(), -1, 1, 0, 4); 
  int nRumble = controller.getNumberOfRumblers();
  controller.rumble(rt,0);
  
}

Ahww… I guess my controller doesn’t support it…
I’ll have to try some other controllers then.
Thanks anyway!