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

  1. #------------------------------------------------------------------------------
  2. # include generic camera controls
  3. exec( "_defCamera.cs" );
  4.  
  5.  
  6. #------------------------------------------------------------------------------
  7. # include generic keyboard controls
  8. exec( "_defKeyboard.cs" );
  9.  
  10.  
  11. #------------------------------------------------------------------------------
  12. #
  13. editActionMap( Herc );
  14.  
  15. # use arrow keys for movement (too)
  16. bindAction( keyboard, make, left, TO, IDACTION_YAW, "+1.0" );
  17. bindAction( keyboard, break, left, TO, IDACTION_YAW, 0.0 );
  18. bindAction( keyboard, make, right, TO, IDACTION_YAW, -1.0 );
  19. bindAction( keyboard, break, right, TO, IDACTION_YAW, 0.0 );
  20. bindAction( keyboard, make, up, TO, IDACTION_SPEED, "+1.0" );
  21. bindAction( keyboard, break, up, TO, IDACTION_SPEED, 0.0 );
  22. bindAction( keyboard, make, down, TO, IDACTION_SPEED, -1.0 );
  23. bindAction( keyboard, break, down, TO, IDACTION_SPEED, 0.0 );
  24.  
  25.  
  26. # Add mouse to contol of the targeting cursor
  27. bindAction( mouse0, make, button0, TO, IDACTION_FIRE, 1.0 );
  28. bindAction( mouse0, break, button0, TO, IDACTION_FIRE, 0.0 );
  29. bindAction( mouse0, make, shift, button0, TO, IDACTION_FIRE, -1.0 );
  30. bindAction( mouse0, break, shift, button0, TO, IDACTION_FIRE, 0.0 );
  31. bindAction( mouse0, break, button1, TO, IDACTION_TARGET_SELECTED );
  32. bindAction( mouse0, break, button2, TO, IDACTION_TARGET_CLOSEST_ENEMY );
  33. bindAction( mouse0, xaxis, TO, IDACTION_LOOK_X, scale, 0.5, flip );
  34. bindAction( mouse0, yaxis, TO, IDACTION_LOOK_Y, scale, 0.5, flip );
  35.  
  36. # The zaxis may cause input problems with some mice. 
  37. #bindAction mouse0 zaxis                    TO IDACTION_TARGET_ADJ_ENEMY scale 0.5
  38.  
  39.  
  40.