Checks the point of view capabilities of the joystick.



Argument Description
id The id of the joystick (1 or 2).

Returns: Real


This function will return true if the joystick/gamepad with the given id has point of view capabilities or false if it does not. The id can be either 1 or 2 as GameMaker: Studio only accepts input from a maximum of two joysticks/gamepads.

NOTE: This function is only available Windows.


if joystick_has_pov(1)
   c_angle = joystick_pov(1);

The above code checks to see if a joystick or gamepad has point of view capabilities and if it does it sets a variable to the returned value of the joystick_pov function.

Back: Joystick Input
Next: joystick_direction
© Copyright YoYo Games Ltd. 2018 All Rights Reserved