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

  1. #------------------------------------------------------------------------------
  2. #
  3. # Generic camera control script file
  4. #
  5.  
  6. #------------------------------------------------------------------------------
  7. newActionMap( CameraOrbit );
  8. #------- Joystick Controls
  9. bindAction( joystick0, zaxis, TO, IDACTION_SPEED, deadzone, 0.1, center, square, flip );
  10. #bindAction joystick0, zaxis  TO, IDACTION_ZOOM_ADJ, deadzone, 0.1, center); 
  11. bindAction( joystick0, yaxis, TO, IDACTION_PITCH, deadzone, 0.1, center, square );
  12. bindAction( joystick0, rzaxis, TO, IDACTION_YAW, deadzone, 0.1, center, square );
  13. bindAction( joystick0, make, button0, TO, IDACTION_NEXT );
  14. #bindAction( joystick0, make, button1, TO, IDACTION_PREV );
  15. bindAction( joystick0, make, button1, TO, IDACTION_TURBO );
  16. bindAction( joystick0, make, button2, TO, IDACTION_LOOK_X );
  17. bindAction( joystick0, make, button3, TO, IDACTION_LOOK_Y );
  18.  
  19. # rotate clockwise/counter-clockwise
  20. bindAction( keyboard, make, left, TO, IDACTION_YAW, -0.75 );
  21. bindAction( keyboard, make, right, TO, IDACTION_YAW, 0.75 );
  22. bindAction( keyboard, break, left, TO, IDACTION_YAW, 0.0 );
  23. bindAction( keyboard, break, right, TO, IDACTION_YAW, 0.0 );
  24.  
  25. # rotate up/down
  26. bindAction( keyboard, make, up, TO, IDACTION_PITCH, 0.5 );
  27. bindAction( keyboard, break, up, TO, IDACTION_PITCH, 0.0 );
  28. bindAction( keyboard, make, down, TO, IDACTION_PITCH, -0.5 );
  29. bindAction( keyboard, break, down, TO, IDACTION_PITCH, 0.0 );
  30.  
  31. # zoom in/out
  32. bindAction( keyboard, make, shift, up, TO, IDACTION_MOVE_Y, -0.5 );
  33. bindAction( keyboard, break, shift, up, TO, IDACTION_MOVE_Y, 0.0 );
  34. bindAction( keyboard, make, shift, down, TO, IDACTION_MOVE_Y, 0.5 );
  35. bindAction( keyboard, break, shift, down, TO, IDACTION_MOVE_Y, 0.0 );
  36. bindAction( joystick0, make,  button0, TO, IDACTION_ZOOM_MODE, 1.0 );
  37. bindAction( joystick0, break, button0, TO, IDACTION_ZOOM_MODE, 0.0 );
  38.  
  39.