home *** CD-ROM | disk | FTP | other *** search
/ Classic Fond 54 / ClassicFond54.iso / games / stars.rar / keyMaps / WingmanLight.cs < prev    next >
Text File  |  1999-02-19  |  2KB  |  36 lines

  1. #------------------------------------------------------------------------------
  2. # include generic game actions
  3. exec( "_gameActions.cs" );
  4.  
  5. #------------------------------------------------------------------------------
  6. # include generic camera controls
  7. exec( "_defCamera.cs" );
  8.  
  9.  
  10. #------------------------------------------------------------------------------
  11. # include generic keyboard controls
  12. exec( "_defKeyboard.cs" );
  13.  
  14.  
  15. #------------------------------------------------------------------------------
  16. #
  17. #  Add support for Logitech WingMan Light
  18. #
  19. editActionMap( Herc );
  20.  
  21. bindAction( joystick, make, button0, TO, IDACTION_FIRE, 1.0 );
  22. bindAction( joystick, break, button0, TO, IDACTION_FIRE, 0.0 );
  23. bindAction( joystick, make, button1, TO, IDACTION_TARGET_SELECTED );
  24. bindAction( joystick, yaxis, TO, IDACTION_SPEED, deadzone, 0.1, center, square );
  25. bindAction( joystick, xaxis, TO, IDACTION_YAW, deadzone, 0.1, center, square );
  26.  
  27. bindAction( mouse0, make, button0, TO, IDACTION_FIRE, 1.0 );
  28. bindAction( mouse0, break, button0, TO, IDACTION_FIRE, 0.0 );
  29. bindAction( mouse0, make, shift, button0, TO, IDACTION_FIRE, -1.0 );
  30. bindAction( mouse0, break, shift, button0, TO, IDACTION_FIRE, 0.0 );
  31. bindAction( mouse0, break, button1, TO, IDACTION_TARGET_SELECTED );
  32. bindAction( mouse0, break, button2, TO, IDACTION_TARGET_CLOSEST_ENEMY );
  33. bindAction( mouse0, xaxis, TO, IDACTION_LOOK_X, scale, 0.5, flip );
  34. bindAction( mouse0, yaxis, TO, IDACTION_LOOK_Y, scale, 0.5, flip );
  35.  
  36.