home *** CD-ROM | disk | FTP | other *** search
/ IO CD 1999 May / IO_maj_99.iso / GRY / starsiege.exe / data1.cab / Demo_Files / keyMaps / Digital_Millenium3D.cs < prev    next >
Text File  |  1999-04-07  |  2KB  |  39 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 generic joystick support
  18. #
  19. editActionMap( Herc );
  20.  
  21. #-- Weapon controls
  22. bindAction( joystick, make, button0, TO, IDACTION_FIRE, 1.0 );
  23. bindAction( joystick, break, button0, TO, IDACTION_FIRE, 0.0 );
  24. bindAction( joystick, make, button1, TO, IDACTION_TARGET_SELECTED );
  25. bindAction( joystick, make, button2, TO, IDACTION_TARGET_CLOSEST_ENEMY );
  26. bindAction( joystick, make, button4, TO, IDACTION_WEAPON_MODE_SELECT );
  27.  
  28. #-- System controls
  29. bindAction( joystick, make, button5, TO, IDACTION_SHIELD_TRACK );
  30. bindAction( joystick, make, button3, TO, IDACTION_CAMOUFLAGE );
  31.  
  32. #-- Movement controls
  33. bindAction( joystick, xaxis, TO, IDACTION_YAW, deadzone, 0.1, center, square );
  34. bindAction( joystick, yaxis, TO, IDACTION_SPEED, deadzone, 0.1, center, square );
  35. bindAction( joystick, rzaxis, TO, IDACTION_SHIELD_FOCUS_ADJ, deadzone, 0.1, center, square );
  36. bindAction( joystick, xpov, TO, IDACTION_LOOK_X, center );
  37. bindAction( joystick, ypov, TO, IDACTION_LOOK_Y, center );
  38.  
  39.