I just noticed that joy_buttons contains the buttons pressed on the second controller connected while joy2_buttons contains the buttons of the first controller.
It's not a huge issue, especially since most people will use joy_1-12 instead (including me). However, I thought it was worth mentioning.