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

  1. #------------------------------------------------------------------------------
  2. #
  3. # Generic camera control script file
  4. #
  5.  
  6. newActionMap( Camera );
  7. #------- Joystick Controls
  8. bindAction( joystick0, zaxis, TO, IDACTION_SPEED, deadzone, 0.1, center, square );
  9. bindAction( joystick0, xaxis, TO, IDACTION_ROLL, deadzone, 0.1, center, square, flip );
  10. bindAction( joystick0, yaxis, TO, IDACTION_PITCH, deadzone, 0.1, center, square, flip );
  11. bindAction( joystick0, make, button4, TO, IDACTION_SPEED, "+1.0" );
  12. bindAction( joystick0, break, button4, TO, IDACTION_SPEED, 0.0 );
  13. bindAction( joystick0, make, button1, TO, IDACTION_SPEED, -1.0 );
  14. bindAction( joystick0, break, button1, TO, IDACTION_SPEED, 0.0 );
  15. bindAction( joystick0, make, button0, TO, IDACTION_YAW, "+1.0" );
  16. bindAction( joystick0, break, button0, TO, IDACTION_YAW, 0.0 );
  17. bindAction( joystick0, make, button2, TO, IDACTION_YAW, -1.0 );
  18. bindAction( joystick0, break, button2, TO, IDACTION_YAW, 0.0 );
  19. bindAction( joystick0, make, button9, TO, IDACTION_TURBO );
  20. bindAction( joystick0, break, button9, TO, IDACTION_TURBO );
  21.  
  22. bindAction( keyboard, make, a, TO, IDACTION_MOVE_X, -1.0 );
  23. bindAction( keyboard, make, d, TO, IDACTION_MOVE_X, "+1.0" );
  24. bindAction( keyboard, break, d, TO, IDACTION_MOVE_X, 0.0 );
  25. bindAction( keyboard, break, a, TO, IDACTION_MOVE_X, 0.0 );
  26.  
  27. bindAction( keyboard, make, w, TO, IDACTION_MOVE_Z, "+1.0" );
  28. bindAction( keyboard, make, s, TO, IDACTION_MOVE_Z, -1.0 );
  29. bindAction( keyboard, break, w, TO, IDACTION_MOVE_Z, 0.0 );
  30. bindAction( keyboard, break, s, TO, IDACTION_MOVE_Z, 0.0 );
  31.  
  32.  
  33. #------------------------------------------------------------------------------
  34. newActionMap( CameraOrbit );
  35. #------- Joystick Control
  36. bindAction( joystick0, yaxis, TO, IDACTION_PITCH, deadzone, 0.1, center, square );
  37. bindAction( joystick0, xaxis, TO, IDACTION_YAW, deadzone, 0.1, center, square, flip );
  38. bindAction( joystick0, make, button0, TO, IDACTION_NEXT );
  39. bindAction( joystick0, make, button1, TO, IDACTION_TURBO );
  40. bindAction( joystick0, make, button2, TO, IDACTION_LOOK_X );
  41. bindAction( joystick0, make, button3, TO, IDACTION_LOOK_Y );
  42.  
  43. # rotate clockwise/counter-clockwise
  44. bindAction( keyboard, make, left, TO, IDACTION_YAW, -0.75 );
  45. bindAction( keyboard, make, right, TO, IDACTION_YAW, "+0.75" );
  46. bindAction( keyboard, break, left, TO, IDACTION_YAW, 0.0 );
  47. bindAction( keyboard, break, right, TO, IDACTION_YAW, 0.0 );
  48.  
  49. # rotate up/down
  50. bindAction( keyboard, make, up, TO, IDACTION_PITCH, 0.5 );
  51. bindAction( keyboard, break, up, TO, IDACTION_PITCH, 0.0 );
  52. bindAction( keyboard, make, down, TO, IDACTION_PITCH, -0.5 );
  53. bindAction( keyboard, break, down, TO, IDACTION_PITCH, 0.0 );
  54.  
  55. # zoom in/out
  56. bindAction( keyboard, make, shift, up, TO, IDACTION_MOVE_Y, -0.5 );
  57. bindAction( keyboard, break, shift, up, TO, IDACTION_MOVE_Y, 0.0 );
  58. bindAction( keyboard, make, shift, down, TO, IDACTION_MOVE_Y, 0.5 );
  59. bindAction( keyboard, break, shift, down, TO, IDACTION_MOVE_Y, 0.0 );
  60. bindAction( joystick0, make, button4, TO, IDACTION_MOVE_Y, -1.0 );
  61. bindAction( joystick0, break, button4, TO, IDACTION_MOVE_Y, 0.0 );
  62. bindAction( joystick0, make, button1, TO, IDACTION_MOVE_Y, 1.0 );
  63. bindAction( joystick0, break, button1, TO, IDACTION_MOVE_Y, 0.0 );
  64.  
  65.