Test Pi4J Picade OS

Pi4J Picade OS contains an additional Test and the audio test should use the internal loudspeaker.

Compile the JavaFX application

cd /home/pi/java-examples/pure-picade
javac --module-path /opt/javafx-sdk/lib --add-modules=javafx.controls,javafx.media hellopicade/HelloPicade.java

To start HelloPicade in X11-Mode

DISPLAY=:0 XAUTHORITY=/home/pi/.Xauthority sudo -E java --module-path /opt/javafx-sdk/lib --add-modules javafx.controls,javafx.media -Dglass.platform=gtk hellopicade.HelloPicade

To start HelloPicade in DRM

sudo java-kiosk hellopicade.HelloPicade

Check the mapping of the Picade buttons to JavaFX KeyCodes:

Joystick upKeyCode.UP
Joystick downKeyCode.DOWN
Joystick leftKeyCode.LEFT
Joystick rightKeyCode.RIGHT
right side black buttonKeyCode.ENTER
left side black buttonKeyCode.ESCAPE
all other buttonsno mapping