Joystick Toolkit - @octave_joystick/pov
- :
joy =
pov(joy, id)
Get the value of pov id on joystick joy.
Inputs
joy - a previously opened joystick object
id - a positive numeric id for the joystick pov to use
id can be a vector of ids to allow getting multiple povs.
Outputs
value - value of the pov as an angle in degrees, or -1 if not pressed.
value will be a vector of values when getting multiple buttons.
Examples
Open device 1 and get value of pov 1
joy = vrjoystick(1); val = pov(joy, 1)
See also: vrjoystick.