Connect gamepad to LinuxARM64

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:

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

with the message:

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.

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.

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