button_just_pressed

Client

Return true or false when a specific button has just been pressed on a controller.

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

Last updated