Main Content


Apply force feedback to joystick axis




force(joy,n,f) applies force feedback f to joystick axis n.

Input Arguments

expand all

Joystick, specified as a vrjoystick object.

Axis number of joystick, specified as a scalar or a vector.

Force feedback to be applied to joystick axis, specified as a scalar or a vector in the range [-1,1]. f values should be in range of -1 to 1, and the number of elements in f should either match the number of elements of n, or f can be a scalar to be applied to all the axes specified by n.

See Also

Introduced in R2007b