I have a joystick reader program. When a button of the joystick is pressed, a signal needs to be emitted.

How to choose which signal needs to be emitted?
Is there a list of the signals somewhere?