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

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