# GetRawJoystickButtonPressed

## Description

Returns 1 if the given button was pressed this frame, otherwise returns 0. Once the button has been pressed this function returns to 0, to check the state of the button use GetJoystickButtonState.
AGK supports up to 32 joystick buttons in the range 1-32.

## Definition

integer GetRawJoystickButtonPressed( index, button )

int agk::GetRawJoystickButtonPressed( UINT index, UINT button )

## Parameters

- index - The ID of the joystick to check.
- button - The ID of the button to check.