home *** CD-ROM | disk | FTP | other *** search
/ Hacker 9 / HACKER09.ISO / Games / StarSiege.exe / Starsiege / KeyMaps / Key_Mouse_DigiJoy.cs < prev    next >
Text File  |  1998-07-21  |  2KB  |  52 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, break, button2, TO, IDACTION_TARGET_CLOSEST_ENEMY );
  28. bindAction( mouse0, xaxis, TO, IDACTION_LOOK_X, scale, 0.5, flip );
  29. bindAction( mouse0, yaxis, TO, IDACTION_LOOK_Y, scale, 0.5, flip );
  30. //bindAction( mouse0, zaxis, TO, IDACTION_TARGET_ADJ_ENEMY, scale, 0.5 );
  31.  
  32.  
  33. bindAction( joystick, make, button0, TO, IDACTION_FIRE, 1.0 );
  34. bindAction( joystick, break, button0, TO, IDACTION_FIRE, 0.0 );
  35. bindAction( joystick, make, button1, TO, IDACTION_TARGET_SELECTED );
  36. bindAction( joystick, make, button2, TO, IDACTION_WEAPON_MODE_SELECT );
  37. bindAction( joystick, make, button3, TO, IDACTION_WEAPON_GROUP_ADJ, 1.0 );
  38. bindAction( joystick, make, button4, TO, IDACTION_CROUCH, 1.0 );
  39. bindAction( joystick, break, button4, TO, IDACTION_CROUCH, 0.0 );
  40. bindAction( joystick, make, button5, TO, IDACTION_CAMOUFLAGE );
  41. bindAction( joystick, make, button6, TO, IDACTION_SENSOR_MODE_TOGGLE );
  42. bindAction( joystick, make, button7, 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, square );
  47. bindAction( joystick, zaxis, TO, IDACTION_ZOOM_ADJ, deadzone, 0.1, center );
  48.  
  49. # comment these 2 lines out if you have problem with your analog joystick
  50. bindAction( joystick, xpov, TO, IDACTION_LOOK_X, center );
  51. bindAction( joystick, ypov, TO, IDACTION_LOOK_Y, center );
  52.