Joystick managed by Marlin

Wondering if something like this can be directly connected to the Rambo 1.4 board.

If so… can someone point me in the right direction?