SET JOYSTICK DEADZONE This command is used to specify the percentage movement required on the controller to trigger the JOYSTICK UP/JOYSTICK DOWN/JOYSTICK LEFT/JOYSTICK RIGHT function.
Syntax
    SET JOYSTICK DEADZONE Percentage Value
Parameters
    Percentage Value
Integer Percentage of joystick travel.
Returns
This command does not return a value.
Description
By default the percentage is 0.
Example Code
    sync on

    sync rate 60

    ZoneSize = 0

    do

    cls

    if inkey$() = "+" and ZoneSize < 100 then inc ZoneSize

    if inkey$() = "-" and ZoneSize > 0 then dec ZoneSize

    set joystick deadzone ZoneSize

    print "Joystick deadzone is at "; ZoneSize; "%"

    print

    if joystick up() = 1 then print "Joystick up"

    if joystick down() = 1 then print "Joystick down"

    if joystick left() = 1 then print "Joystick left"

    if joystick right() = 1 then print "Joystick right"

    sync

    loop
See also
INPUT Commands Menu Index