PadEvent.getButton

uint getButton()

Extracts information about the pressed button from a pad event.

Returns

the button of event