Joystick input, different buttons

I want some actions in my game to be performed by button 1 of joystick/gamepad and some with button 2. Unfortunately documentation isn’t helpful, as excerpt from advanced input says:

Quote:
Joystick Button: JoyButtonTrigger(0, JoyInput.AXIS_POV_X),
JoyButtonTrigger(0, JoyInput.AXIS_POV_Y) ?
0 is joystick's ID (I've already checked that constructor out) and second parameter is axisID. There is no place for button id.

So how do I perform different actions with different pad/joystick buttons?

//edit found about Joystick class, problem solved, though documentation doesn't mention it.