joystick_has_pov(id);
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.