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

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