# GetRawJoystickButtonState

## Description

Returns 1 if the given button is currently down, otherwise returns 0. To detect the instance that a button is pressed or released use GetRawJoystickButtonPressed or GetRawJoystickButtonReleased.
AGK supports up to 64 joystick buttons in the range 1-64.

## Definition

integer GetRawJoystickButtonState( index, button )

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

## Parameters

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