Pretty sure your problem is due to this:
[Joystick]
# Get codes from "jstest /dev/input/js0"
# from package "joystick"
input_player1_joypad_index = 0
#player 2 button configuration
input_player1_joypad_index = 1
You have both configs set as player 1. Change one to player 2.