button_get_value

Client

Return how much a button is pressed, useful to return the pressed amount of left or right trigger as an example. In the case of a "standard" button, it's recommended to use this functions instead:

local retval --[[ number ]] = input.button_get_value(buttonname --[[ string ]])
local retval --[[ number ]] = input.button_get_value(buttonid --[[ integer ]])

Last updated