please format code with </> button * homework policy * asking questions
Hi I’m new to processing and trying to control my robot arm using an USB game controller(armor3 wired controller) through processing.
While using the Game Control Plus library, I successfully moved the robot using the joysticks, but the buttons do not work. Pretty sure there is nothing wrong with the settings set at the configuration
any suggestions?
my code is as below;
import processing.serial.*;
import net.java.games.input.;
import org.gamecontrolplus.;
import org.gamecontrolplus.gui.*;
import cc.arduino.;
import org.firmata.;
ControlDevice cont;
ControlIO control;
ControlButton origin;
if(cont.getButton(“origin”).pressed()){
print(“ORIGIN”);
}