home *** CD-ROM | disk | FTP | other *** search
/ Hacker 9 / HACKER09.ISO / Games / StarSiege.exe / Starsiege / KeyMaps / Sidewinder3DPro.cs < prev    next >
Text File  |  1998-07-21  |  2KB  |  49 lines

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