Skip to main content

IS_BUTTON_PRESSED

Game.IsButtonPressedHash0x7FF21081
Usage
local isButtonPressed = Game.IsButtonPressed(padNumber, buttonNumber)

Returns TRUE if the specified button on the specified controller is being pressed/used.

Parameters

  • padNumberintegerint
  • buttonNumberintegerint

Returns

  • isButtonPressedbooleanreturn value
Original declaration
// 0x7FF21081
bool IS_BUTTON_PRESSED(int padNumber, int buttonNumber);