button_is_pressed

Client

Return true or false when a specific button is currently pressed on a controller.

local retval --[[ boolean ]] = input.button_is_pressed(buttonname --[[ string ]])
local retval --[[ boolean ]] = input.button_is_pressed(buttonid --[[ integer ]])

Last updated