New Picade Physical Volume buttons?

I’m interested in adding some physical volume buttons to my 2018 Picade. Adding the buttons is easy enough and I have no problems adding them to the hacker header on the Picade X HAT but what then… is there an easy way to make them control the volume (including when games are being played?).

Any suggestions welcome! Thanks!

I have absolutely no idea if it will work,but you could use the gpio-key dtoverlay and try these keycodes:

#define KEY_VOLUMEDOWN  114
#define KEY_VOLUMEUP    115

Documented here: