;
; Controller definition - keyboard example
; 30-09-05: Created (RvG) (note that driving with the keyboard is less than satisfactory)
;
global
{
  ; Direct shifting to gears?
  free_shifting=0
}
controllers
{
  ;
  ; Controller types are recognized by their name (don't use double names)
  ; Types are: mouse, keyboard, joystick
  ;
  mouse
  {
    ; Fallback to mouse control
    enable=1
    ; Time per update (ms)
    time_per_update_in=10
    time_per_update_out=10
    ; Controls
    shiftup
    {
      button=0
    }
    shiftdown
    {
      button=2
    }
    throttle
    {
      axis=y
      min=-1000
      max=0
      negate=1
      linearity=1.000000
    }
    brakes
    {
      axis=y
      min=0
      max=1000
      negate=0
      linearity=1.000000
    }
    steerleft
    {
      axis=x
      min=-1000
      max=0
      linearity=0.400000
      button=-1
      pov=-1
      negate=1
      make_analog=0
      sensitivity_rise=5.000000
      sensitivity_fall=50.000000
    }
    steerright
    {
      axis=x
      min=0
      max=1000
      linearity=0.400000
      button=-1
      pov=-1
      negate=0
      make_analog=0
      sensitivity_rise=5.000000
      sensitivity_fall=50.000000
    }
  }
  keyboard
  {
    throttle
    {
      key=up
      sensitivity_rise=0.5
      sensitivity_fall=5
      make_analog=1
    }
    brakes
    {
      key=down
      sensitivity_rise=0.5
      sensitivity_fall=5
      make_analog=1
    }
    steerleft
    {
      key=left
      sensitivity_rise=0.5
      sensitivity_fall=1
      make_analog=1
    }
    steerright
    {
      key=right
      sensitivity_rise=0.5
      sensitivity_fall=1
      make_analog=1
    }
    shiftup
    {
      key=a
    }
    shiftdown
    {
      key=z
    }
    horn
    {
      key=h
    }
    clutch
    {
      key=q
    }
    starter
    {
      key=s
    }
    change_camera
    {
      key=c
    }
  }
}
