joystick object
This method checks whether a particular pov is centered on the joystick.
bool pov_centered(int pov)
Parameters:
pov
The index of the pov to check (see remarks).
Return value:
true if the selected pov is centered, false if not or if an error has occurred.
Remarks:
The joystick object supports up to four povs, ranging from 1 to 4, though the actual maximum depends on the povs property for the given device.
Example:

    // Check each pov on the joystick to see if it is centered. Wait two seconds for the script to work out what is central when it opens.

    void main()
    {
    joystick stick;
    show_game_window("Joystick Test");
    if(stick.joysticks==0)
    {
    alert("Error", "No joysticks seem to be attached.");
    exit();
    }
    show_game_window("Pov Center Example");
    wait(2000);
    for(int counter=1; counter<=stick.povs; counter++)
    {
    if(stick.pov_centered(counter))
    {
    alert("pov", "pov "+counter+" centred.");
    }
    }
    }