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

  1. #Modified 10/23/98
  2.  
  3. ###############################################################################
  4. #
  5. #     NOTE: This key binding script may not work with analog joysticks
  6. #     if their readings fluctuate too much.  If this is not working with
  7. #    your joystick comment out the lines noted below.
  8. #
  9. ###############################################################################
  10.  
  11.  
  12. #------------------------------------------------------------------------------
  13. #    include generic game actions
  14. #------------------------------------------------------------------------------
  15. exec( "_gameActions.cs" );
  16.  
  17.  
  18. #------------------------------------------------------------------------------
  19. #    include generic camera controls
  20. #------------------------------------------------------------------------------
  21. exec( "_defCamera.cs" );
  22.  
  23.  
  24. #------------------------------------------------------------------------------
  25. #    include generic keyboard controls
  26. #------------------------------------------------------------------------------
  27. exec( "_defKeyboard.cs" );
  28.  
  29.  
  30. #------------------------------------------------------------------------------
  31. #    Mouse Controls 
  32. #------------------------------------------------------------------------------
  33. editActionMap( Herc );
  34.  
  35. bindAction( mouse0, make,  button0, TO, IDACTION_FIRE, 1 );   
  36.   bindAction( mouse0, break,  button0, TO, IDACTION_FIRE, 0 );   
  37. bindAction( mouse0, break,  button1, TO, IDACTION_TARGET_SELECTED );    
  38. bindAction( mouse0, break,  button2, TO, IDACTION_TARGET_CLOSEST_ENEMY );    
  39. bindAction( mouse0, xaxis,   TO, IDACTION_LOOK_X, scale, 0.5, flip ); 
  40. bindAction( mouse0, yaxis,   TO, IDACTION_LOOK_Y, scale, 0.5, flip ); 
  41.            
  42. #------------------------------------------------------------------------------
  43. #    Joystick Controls
  44. #------------------------------------------------------------------------------               
  45. bindAction( joystick, make,  button0, TO, IDACTION_FIRE, 1 );   
  46.   bindAction( joystick, break,  button0, TO, IDACTION_FIRE, 0 );   
  47. bindAction( joystick, make,  button1, TO, IDACTION_TARGET_SELECTED );    
  48. bindAction( joystick, make,  button2, TO, IDACTION_WEAPON_MODE_SELECT );    
  49. bindAction( joystick, make,  button3, TO, IDACTION_WEAPON_GROUP_ADJ, 1 );    
  50. bindAction( joystick, make,  button4, TO, IDACTION_REVERSE_THROTTLE );   
  51. bindAction( joystick, make,  button5, TO, IDACTION_SENSOR_MODE_TOGGLE );    
  52. bindAction( joystick, make,  button6, TO, IDACTION_REACTOR );    
  53. bindAction( joystick, make,  button7, TO, IDACTION_SHIELD );    
  54.            
  55. bindAction( joystick,   xaxis, TO, IDACTION_YAW, deadzone, 0.1, center, square );
  56. bindAction( joystick,   yaxis, TO, IDACTION_SPEED, deadzone, 0.1, center, square );
  57. bindAction( joystick,   zaxis, TO, IDACTION_ZOOM_ADJ, deadzone, 0.1, center ); 
  58.            
  59. #------comment these 2 lines out if you have problem with your analog joystick           
  60. bindAction( joystick,   xpov, TO, IDACTION_LOOK_X, center );   
  61. bindAction( joystick,   ypov, TO, IDACTION_LOOK_Y, center );   
  62.