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

  1. #modified 10/23/98
  2. #------------------------------------------------------------------------------
  3. #    include generic game actions
  4. #------------------------------------------------------------------------------
  5. exec( "_gameActions.cs" );
  6.  
  7. #------------------------------------------------------------------------------
  8. #    include generic camera controls
  9. #------------------------------------------------------------------------------
  10. exec( "_defCamera.cs" );
  11.  
  12. #------------------------------------------------------------------------------
  13. #    include generic keyboard controls
  14. #------------------------------------------------------------------------------
  15. exec( "_defKeyboard.cs" );
  16.  
  17. #------------------------------------------------------------------------------
  18. #    Keys for control of the targeting cursor
  19. #------------------------------------------------------------------------------
  20. editActionMap( Herc );
  21.  
  22. #------- use w,a,d,s for targeting cursor
  23. bindAction( keyboard, make, w, TO, IDACTION_LOOK_Y, "+1.0" );
  24. bindAction( keyboard, make, s, TO, IDACTION_LOOK_Y, -1.0 );
  25. bindAction( keyboard, break, w, TO, IDACTION_LOOK_Y, 0.0 );
  26. bindAction( keyboard, break, s, TO, IDACTION_LOOK_Y, 0.0 );
  27. bindAction( keyboard, make, a, TO, IDACTION_LOOK_X, "+1.0" );
  28. bindAction( keyboard, make, d, TO, IDACTION_LOOK_X, -1.0 );
  29. bindAction( keyboard, break, a, TO, IDACTION_LOOK_X, 0.0 );
  30. bindAction( keyboard, break, d, TO, IDACTION_LOOK_X, 0.0 );
  31.  
  32. bindaction( keyboard, make, shift, s, TO, IDACTION_SPOT, 1 );   
  33. bindaction( keyboard, break, shift, s, TO, IDACTION_SPOT, "-1" ); 
  34.  
  35. bindAction( keyboard, make, e, TO, IDACTION_TARGET_SELECTED ); 
  36.  
  37. #------- use arrow keys for targeting cursor
  38. bindAction( keyboard, make, up, TO, IDACTION_LOOK_Y, "+1.0" );
  39. bindAction( keyboard, make, down, TO, IDACTION_LOOK_Y, -1.0 );
  40. bindAction( keyboard, break, up, TO, IDACTION_LOOK_Y, 0.0 );
  41. bindAction( keyboard, break, down, TO, IDACTION_LOOK_Y, 0.0 );
  42. bindAction( keyboard, make, left, TO, IDACTION_LOOK_X, "+1.0" );
  43. bindAction( keyboard, make, right, TO, IDACTION_LOOK_X, -1.0 );
  44. bindAction( keyboard, break, left, TO, IDACTION_LOOK_X, 0.0 );
  45. bindAction( keyboard, break, right, TO, IDACTION_LOOK_X, 0.0 );
  46.  
  47.