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

  1.  
  2. # include tilt camera controls
  3. exec( "_tiltCamera.cs" );
  4.  
  5. #------------------------------------------------------------------------------
  6. # include generic keyboard controls
  7. exec( "_defKeyboard.cs" );
  8.  
  9.  
  10. #------------------------------------------------------------------------------
  11. #
  12. #  Add support from Microsoft Sidewinder Pro joystick
  13. #
  14. editActionMap( Herc );
  15.  
  16. # Weapon controls
  17. bindAction( joystick, make, button7, TO, IDACTION_FIRE, 1.0 );
  18. bindAction( joystick, break, button7, TO, IDACTION_FIRE, 0.0 );
  19. bindAction( joystick, make, button6, TO, IDACTION_TARGET_SELECTED );
  20. bindAction( joystick, make, button9, TO, IDACTION_TARGET_CLOSEST_ENEMY );
  21. bindAction( joystick, make, button8, TO, IDACTION_WEAPON_MODE_SELECT);
  22.  
  23. # Shield and system controls
  24. bindAction( joystick, make, button3, TO, IDACTION_CAMOUFLAGE );
  25. bindAction( joystick, make, button4, TO, IDACTION_REACTOR );
  26. bindAction( joystick, make, button1, TO, IDACTION_SHIELD );
  27. bindAction( joystick, make, button2, TO, IDACTION_CROUCH, 1.0 );
  28. bindAction( joystick, break, button2, TO, IDACTION_CROUCH, 0.0 );
  29.  
  30. #Movement and view controls
  31. bindAction( joystick, xaxis, TO, IDACTION_YAW, deadzone, 0.1, center );
  32. bindAction( joystick, yaxis, TO, IDACTION_SPEED, deadzone, 0.1, center );
  33. #bindAction joystick zaxis                  TO IDACTION_SPEED deadzone 0.1 center square
  34. bindAction( joystick, xpov, TO, IDACTION_LOOK_X, square, center );
  35. bindAction( joystick, ypov, TO, IDACTION_LOOK_Y, square,center );
  36. bindAction( joystick, make, button0, TO, IDACTION_ZOOM_SET, 1.0 );
  37. bindAction( joystick, break, button0, TO, IDACTION_ZOOM_SET, 0.0 );
  38. bindAction( joystick, make, button5, TO, IDACTION_STOP );
  39.  
  40.