# Issues with Game Control Plus/Processing & Arduino

**URL:** <https://discourse.processing.org/t/issues-with-game-control-plus-processing-arduino/36691>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [May 3, 2022, 2:10am UTC](https://discourse.processing.org/t/issues-with-game-control-plus-processing-arduino/36691 "2022-05-03T02:10:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dewski](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@Dewski](https://discourse.processing.org/u/Dewski)\
**Post date:** [May 3, 2022, 2:10am UTC](https://discourse.processing.org/t/issues-with-game-control-plus-processing-arduino/36691/1 "2022-05-03T02:10:06Z")

</div>

Hello,

Newbie to Processing, and coding in general here. I am working on a project to control a 12v motor from a button on a sim racing steering wheel. The motor will be powered off most of the time, but I want it to activate when I press a specific button for the duration of the press. The below code is what I have so far, and it works with my Dualshock 4 controller.

```auto
import processing.serial.*;

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

ControlIO control;
Configuration config;
ControlDevice gpad;

Serial MySerial;

void setup() {
  control = ControlIO.getInstance(this);
  gpad = control.filter(GCP.GAMEPAD).getMatchedDevice("Gamepad");
  size(400, 600);
  MySerial = new Serial(this, "COM5", 9600);
}

void draw() {
  background(255, 0, 0);
  if (gpad.getButton("ACTIVATE").pressed()) {
    MySerial.write(1);
  } else {
    MySerial.write(0);
  }
}

```

I do get the exact error message below every time I run the script but otherwise it works as intended.

```auto
Failed to initialize device ITE Device(8595) because of: java.io.IOException: Failed to acquire device (8007001e)
Failed to initialize device ITE Device(8595) because of: java.io.IOException: Failed to acquire device (8007001e)

```

And the real trouble comes with the fact that the Dualshock is the only game controller device that I can get to work. Whenever I try my steering wheel or button box they do not work. I get the same error messages, but the other devices do nothing, and send nothing into serial monitor whereas the Dualshock will.

I have tried calling the steering every way I know how, including trying to call a specific setup file. But for example this is how I’m currently trying to call it, and I have triple checked to ensure this is how the wheel is identified in Processing/GCP.

```auto
ControlIO control;
ControlDevice device;
ControlButton ACTIVATE;

Serial MySerial;

void setup() {
  control = ControlIO.getInstance(this);
  device = control.getDevice("Thrustmaster Advanced Mode Racer");
  size(400, 600);
  MySerial = new Serial(this, "COM5", 9600);
}

```

Does anyone have any idea why my Dualshock will work but other peripherals can’t be initialized? The Dualshock is the last controller I would want to do this function. Any help would be greatly appreciated!

---

<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:** [May 3, 2022, 7:25am UTC](https://discourse.processing.org/t/issues-with-game-control-plus-processing-arduino/36691/2 "2022-05-03T07:25:42Z")

</div>

I suggest that you read this [webpage](http://www.lagers.org.uk/gamecontrol/index.html) it explains why GCP might not work with modern controllers.

---

<div class="post-metadata">

**Author:** ![Dewski](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@Dewski](https://discourse.processing.org/u/Dewski)\
**Post date:** [May 3, 2022, 4:30pm UTC](https://discourse.processing.org/t/issues-with-game-control-plus-processing-arduino/36691/3 "2022-05-03T16:30:36Z")

</div>

Ah thank you. Do you know of any other libraries that do something similar that might work better with modern controllers?

---

<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:** [May 3, 2022, 5:16pm UTC](https://discourse.processing.org/t/issues-with-game-control-plus-processing-arduino/36691/4 "2022-05-03T17:16:44Z")

</div>

Not that I know of - sorry
