Try using the "Search by input" button in the Controls menu. When you press this, you can physically press a button on your joystick, and the game will show you which number it corresponds to. This way, you can figure out which number matches each button on your device without needing a pre-labeled comparison.