Access Elgato Stream Deck from Processing

I got myself an Elgato Stream Deck XL that I want to use to control my Processing sketches on my Mac.

Ideally, I would connect to my Stream Deck directly from Processing to be able to send text/images to buttons and listen for keypresses. But I’m not sure how to do this. The Stream Deck SDK does not mention Java anywhere. However, a now seemingly abandoned project used Java to connect to the original 15-button Stream Deck. Unfortunately, this project doesn’t seem to support other Stream Deck versions (XL/Mini).

As my current workaround, I’m using Keyboard Maestro to trigger virtual keyboard presses that Processing can register based on input from my Stream Deck. This works, but it doesn’t allow for any direct I/O with the Stream Deck.

Any tips on how I might proceed will be gladly received.