@oloff3 You could try something like:
input_volume_up = +<button value> input_volume_down = -<button value>or another approach is described here https://retropie.org.uk/forum/topic/2377/control-volume-through-retroarch-with-keyboard/4, outside of RetroArch. The example in the topic is more for the keyboard use, but if you can make the events appear as keypresses, the principle is the same.