home *** CD-ROM | disk | FTP | other *** search
/ Classic Fond 54 / ClassicFond54.iso / games / stars.rar / keyMaps / _defCamera.cs next >
Text File  |  1999-02-19  |  3KB  |  56 lines

  1. ###############################################################################
  2. #
  3. #             Generic camera control script file
  4. #
  5. ###############################################################################
  6.  
  7.  
  8. #------------------------------------------------------------------------------
  9. #    Orbit Camera controls
  10. #------------------------------------------------------------------------------
  11. newActionMap( CameraOrbit );
  12.  
  13. #------- Joystick Controls
  14. bindAction( joystick0, yaxis,  TO, IDACTION_PITCH, deadzone, 0.1, center, square );
  15. bindAction( joystick0, xaxis,  TO, IDACTION_YAW,   deadzone, 0.1, center, square, flip );
  16. bindAction( joystick0, rzaxis, TO, IDACTION_ROLL,  deadzone, 0.1, center, square );
  17. bindAction( joystick0, make,  button0, TO, IDACTION_ZOOM_MODE, 1.0 );
  18. bindAction( joystick0, break, button0, TO, IDACTION_ZOOM_MODE, 0.0 );
  19. bindAction( joystick0, make,  button1, TO, IDACTION_NEXT );
  20. bindAction( joystick0, make,  button2, TO, IDACTION_LOOK_X );
  21. bindAction( joystick0, make,  button3, TO, IDACTION_LOOK_Y );
  22.  
  23. #------- Keyboard Controls
  24.  
  25. # rotate camera left/right
  26. bindAction( keyboard, make,  left,  TO, IDACTION_YAW, -0.75 );
  27. bindAction( keyboard, break, left,  TO, IDACTION_YAW,  0.0 );
  28. bindAction( keyboard, make,  right, TO, IDACTION_YAW,  0.75 );
  29. bindAction( keyboard, break, right, TO, IDACTION_YAW,  0.0 );
  30.  
  31. bindAction( keyboard, make,  shift, left,  TO, IDACTION_YAW, -0.75 );
  32. bindAction( keyboard, break, shift, left,  TO, IDACTION_YAW,  0.0 );
  33. bindAction( keyboard, make,  shift, right, TO, IDACTION_YAW,  0.75 );
  34. bindAction( keyboard, break, shift, right, TO, IDACTION_YAW,  0.0 );
  35.  
  36. # rotate camera up/down
  37. bindAction( keyboard, make,  up,   TO, IDACTION_PITCH,  0.5 );
  38. bindAction( keyboard, break, up,   TO, IDACTION_PITCH,  0.0 );
  39. bindAction( keyboard, make,  down, TO, IDACTION_PITCH, -0.5 );
  40. bindAction( keyboard, break, down, TO, IDACTION_PITCH,  0.0 );
  41.  
  42. # zoom in/out
  43. bindAction( keyboard, make,  prior, TO, IDACTION_MOVE_Y, -0.5 );
  44. bindAction( keyboard, break, prior, TO, IDACTION_MOVE_Y,  0.0 );
  45. bindAction( keyboard, make,  next,  TO, IDACTION_MOVE_Y,  0.5 );
  46. bindAction( keyboard, break, next,  TO, IDACTION_MOVE_Y,  0.0 );
  47.  
  48. bindAction( keyboard, make,  shift, up,   TO, IDACTION_MOVE_Y, -0.5 );
  49. bindAction( keyboard, break, shift, up,   TO, IDACTION_MOVE_Y,  0.0 );
  50. bindAction( keyboard, make,  shift, down, TO, IDACTION_MOVE_Y,  0.5 );
  51. bindAction( keyboard, break, shift, down, TO, IDACTION_MOVE_Y,  0.0 );
  52.  
  53. # next/prev object
  54. bindAction( keyboard, make, home, TO, IDACTION_NEXT );
  55. bindAction( keyboard, make, end,  TO, IDACTION_PREV );
  56.