home *** CD-ROM | disk | FTP | other *** search
/ Classic Fond 54 / ClassicFond54.iso / games / stars.rar / keyMaps / Digital_Rage3D.cs < prev    next >
Text File  |  1999-02-19  |  2KB  |  45 lines

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