# Connect gamepad to LinuxARM64

**URL:** <https://discourse.processing.org/t/connect-gamepad-to-linuxarm64/46814>\
**Category:** Processing for Pi\
**Created:** [July 28, 2025, 8:04pm UTC](https://discourse.processing.org/t/connect-gamepad-to-linuxarm64/46814 "2025-07-28T20:04:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![budryerson](https://avatars.discourse-cdn.com/v4/letter/b/8dc957/32.png) [@budryerson](https://discourse.processing.org/u/budryerson)\
**Post date:** [July 28, 2025, 8:04pm UTC](https://discourse.processing.org/t/connect-gamepad-to-linuxarm64/46814/1 "2025-07-28T20:04:00Z")

</div>

Greetings!

I’m trying to connect a Logitech F710 gamepad to a Raspberry Pi 4B running Raspbian 12 (Bookworm) and Processing 4.3.3. I installed the recommended Game Control Plus (GCP) library. It’s a little clunky and requires a customized “data” file; but I figured out how to use it, and I have used it successfully on a Win10 PC. However, the same sketch fails to initalize on the Rpi at this line:

```auto
void setup() {
    ...
    control = ControlIO.getInstance(this);
    ...
}

```

with the message:

```auto
Wrong ELF class: ELFCLASS32 (Possible cause: can't load IA 32 .so on a AARCH64 platform)
A library used by this sketch relies on native code that is not available.

```

 ![Capture](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/d/e/de3de2465cdf4739a5b1718160822a18f2ce9c79.png)

The problem seems to stem from the fact that the GCP library was abandoned many years ago and has not been updated to run on Linux ARM64 architecture. The similar Jamepad library appears to suffer from the same problems: a lack of maintenance and no “linuxARM64.so”.

The F710 gamepad connects to my Rpi without a problem. It responds correctly to  
`jstest-gtk /dev/input/js0`  
But, I cannot figure out how to reach to the device through the Processing IDE.

 ![Capture 2](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/d/0/d010504528907ab10f3211d6c02de6123d3f8dfa.png)

So, has anyone succeeed in getting the GCP or Jamepad library or any other library to work on Linux ARM64? Does anyone have any suggestions for how I can proceed from here? I would truly appreciate any advice.

Bud Ryerson  
San Francisco
