joy_get_value

Client

Return the current axis values of a stick. (Values are between -1 to 1)

local retval --[[ vector2 ]] = input.joy_get_value(joyid --[[ integer ]])

joyidparameter can take 2 different values, 0 is the left stick, 1 is the right one.

Last updated