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

  1. #------------------------------------------------------------------------------
  2. # include generic game actions
  3. exec( "_gameActions.cs" );
  4.  
  5. #------------------------------------------------------------------------------
  6. #
  7. # NOTE: This key binding script may not work with analog joysticks
  8. # if their readings fluctuate too much.
  9. #
  10.  
  11.  
  12. #------------------------------------------------------------------------------
  13. # include generic camera controls
  14. exec( "_defCamera.cs" );
  15.  
  16.  
  17. #------------------------------------------------------------------------------
  18. # include generic keyboard controls
  19. exec( "_defKeyboard.cs" );
  20.  
  21.  
  22. #------------------------------------------------------------------------------
  23. #
  24. # Add mouse to contol of the targeting cursor
  25. #
  26. editActionMap( Herc );
  27.  
  28. bindAction( mouse0, make, button0, TO, IDACTION_FIRE, 1.0 );
  29. bindAction( mouse0, break, button0, TO, IDACTION_FIRE, 0.0 );
  30. bindAction( mouse0, break, button1, TO, IDACTION_TARGET_SELECTED );
  31. bindAction( mouse0, xaxis, TO, IDACTION_LOOK_X, scale, 0.9, flip );
  32. bindAction( mouse0, yaxis, TO, IDACTION_LOOK_Y, scale, 0.9, flip );
  33.  
  34. bindAction( joystick, make, button0, TO, IDACTION_CAMOUFLAGE );
  35. bindAction( joystick, make, button1, TO, IDACTION_TURBO );
  36. bindAction( joystick, make, button2, TO, IDACTION_TARGET_CLOSEST_ENEMY );
  37. bindAction( joystick, make, button3, TO, IDACTION_WEAPON_MODE_SELECT);
  38. bindAction( joystick, make, button4, TO, IDACTION_REACTOR );
  39. bindAction( joystick, make, upov, TO, IDACTION_ZOOM_ADJ, 1.0 );
  40. bindAction( joystick, break, upov, TO, IDACTION_ZOOM_ADJ, 0.0);
  41. bindAction( joystick, make, dpov, TO, IDACTION_ZOOM_ADJ, -1.0);
  42. bindAction( joystick, break, dpov, TO, IDACTION_ZOOM_ADJ, 0.0);
  43. bindAction( joystick, make, rpov, TO, IDACTION_SENSOR_RANGE_TOGGLE);
  44. bindAction( joystick, make, lpov, TO, IDACTION_SENSOR_MODE_TOGGLE);
  45.  
  46. bindAction( keyboard, make, p, TO, IDACTION_REACTOR );
  47.  
  48. bindAction( joystick, xaxis, TO, IDACTION_YAW, deadzone, 0.1, center, square );
  49. bindAction( joystick, yaxis, TO, IDACTION_SPEED, deadzone, 0.1, center, square );
  50. bindAction( joystick, rzaxis, TO, IDACTION_SHIELD_FOCUS_ADJ, deadzone, 0.1, center, scale, 0.2 );
  51. //bindAction( joystick, zaxis, TO, IDACTION_SHIELD_FOCUS_ADJ,deadzone, 0.1, center );
  52.  
  53.