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

  1. #------------------------------------------------------------------------------
  2. # include generic camera controls
  3. exec( "_defCamera.cs" );
  4.  
  5.  
  6. #------------------------------------------------------------------------------
  7. # include generic keyboard controls
  8. exec( "_defKeyboard.cs" );
  9.  
  10. #------------------------------------------------------------------------------
  11. #
  12. # Add support for MadCatz PantherXL joystick
  13. #
  14. editActionMap( Herc );
  15.  
  16. #--Weapon Controls
  17. bindAction( keyboard, make, 1, TO, IDACTION_WEAPON_SELECT, 0.0 );
  18. bindAction( keyboard, make, 2, TO, IDACTION_WEAPON_SELECT, 1.0 );
  19. bindAction( keyboard, make, 3, TO, IDACTION_WEAPON_SELECT, 2.0 );
  20. bindAction( keyboard, make, 4, TO, IDACTION_WEAPON_SELECT, 3.0 );
  21. bindAction( keyboard, make, 5, TO, IDACTION_WEAPON_GROUP_TOGGLE, 0.0 );
  22. bindAction( keyboard, make, 6, TO, IDACTION_WEAPON_GROUP_TOGGLE, 1.0 );
  23. bindAction( keyboard, make, 7, TO, IDACTION_WEAPON_GROUP_TOGGLE, 2.0 );
  24. bindAction( keyboard, make, 8, TO, IDACTION_WEAPON_GROUP_TOGGLE, 3.0 );
  25. bindAction( keyboard, make, shift, 1, TO, IDACTION_WEAPON_GROUP_TOGGLE, 0.0 );
  26. bindAction( keyboard, make, shift, 2, TO, IDACTION_WEAPON_GROUP_TOGGLE, 1.0 );
  27. bindAction( keyboard, make, shift, 3, TO, IDACTION_WEAPON_GROUP_TOGGLE, 2.0 );
  28. bindAction( keyboard, make, shift, 4, TO, IDACTION_WEAPON_GROUP_TOGGLE, 3.0 );
  29. bindAction( keyboard, make, w, TO, IDACTION_WEAPON_ADJ, "+1.0" );
  30. bindAction( keyboard, make, alt, w, TO, IDACTION_WEAPON_ADJ, -1.0 );
  31. bindAction( keyboard, make, l, TO, IDACTION_WEAPON_MODE_SELECT, 0 );
  32. bindAction( keyboard, make, z, TO, IDACTION_WEAPON_GROUP_SELECT, 0 );
  33. bindAction( keyboard, make, x, TO, IDACTION_WEAPON_GROUP_SELECT, 1 );
  34. bindAction( keyboard, make, c, TO, IDACTION_WEAPON_GROUP_SELECT, 2 );
  35.  
  36. bindAction( joystick, make, button10, TO, IDACTION_WEAPON_GROUP_SELECT, 0);
  37. bindAction( joystick, make, button11, TO, IDACTION_WEAPON_GROUP_SELECT, 1);
  38. bindAction( joystick, make, button12, TO, IDACTION_WEAPON_GROUP_SELECT, 2);
  39.  
  40. bindAction( joystick, make,  button0, TO, IDACTION_FIRE, 1.0);
  41. bindAction( joystick, break, button0, TO, IDACTION_FIRE, 0.0);
  42. bindAction( joystick, make,  button8, TO, IDACTION_WEAPON_MODE_SELECT, 0.0);
  43.                                   
  44.  
  45. # --Movement controls
  46. bindAction( joystick, xaxis, TO, IDACTION_YAW, deadzone, 0.1, center, square );
  47. bindAction( joystick, yaxis, TO, IDACTION_SPEED, deadzone, 0.1, center, square );
  48.  
  49. # --View and Sensor controls
  50. bindAction( joystick, ypov, TO, IDACTION_ZOOM_ADJ, center);
  51. bindAction( joystick, make, button5, TO, IDACTION_SENSOR_RANGE_TOGGLE);
  52. bindAction( joystick, make, button7, TO, IDACTION_SENSOR_MODE_TOGGLE);
  53. bindAction( joystick, make, button4, TO, IDACTION_TARGET_ADJ_ENEMY, 1.0);
  54. bindAction( joystick, make, button6, TO, IDACTION_TARGET_ADJ_ENEMY, -1.0);
  55. bindAction( joystick, slider0, TO, IDACTION_LOOK_X, deadzone, 0.01, scale, 0.6, center );
  56. bindAction( joystick, slider1, TO, IDACTION_LOOK_Y, deadzone, 0.01, scale, 0.6, center );
  57.  
  58.  
  59. #-- System and Targeting Controls
  60. bindAction( joystick, make,  button3, TO, IDACTION_CAMOUFLAGE);
  61. bindAction( joystick, make,  button9, TO, IDACTION_REACTOR);
  62. bindAction( joystick, make,  button2, TO, IDACTION_TARGET_SELECTED);
  63. bindAction( joystick, make,  button1, TO, IDACTION_TARGET_CLOSEST_ENEMY);
  64.