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

  1. #Modified 2/2/99
  2.  
  3. ###############################################################################           
  4. #
  5. #         Generic Joystick Herc control script file
  6. #
  7. ###############################################################################     
  8.  
  9. editActionMap( Herc );
  10.  
  11. # Joystick Controls           
  12. bindAction( joystick, make,  button0, TO, IDACTION_FIRE, 1 );   
  13. bindAction( joystick, break, button0, TO, IDACTION_FIRE, 0 );   
  14. bindAction( joystick, make,  button1, TO, IDACTION_TARGET_SELECTED );    
  15.  
  16. # multi-button joystick
  17. bindAction( joystick, make,  button2, TO, IDACTION_WEAPON_MODE_SELECT );    
  18. bindAction( joystick, make,  button3, TO, IDACTION_WEAPON_GROUP_ADJ, 1 );    
  19. bindAction( joystick, make,  button4, TO, IDACTION_REVERSE_THROTTLE );   
  20. bindAction( joystick, make,  button5, TO, IDACTION_SENSOR_MODE_TOGGLE );    
  21. bindAction( joystick, make,  button6, TO, IDACTION_REACTOR );    
  22. bindAction( joystick, make,  button7, TO, IDACTION_SHIELD );    
  23.            
  24. bindAction( joystick,   xaxis, TO, IDACTION_YAW, deadzone, 0.1, center, square );
  25. bindAction( joystick,   yaxis, TO, IDACTION_SPEED, deadzone, 0.1, center, square );        
  26. #bindAction( joystick,   zaxis, TO, IDACTION_ZOOM_ADJ, deadzone, 0.1, center ); 
  27.            
  28. # comment these 2 lines out if you have problem with your analog joystick           
  29. bindAction( joystick,   xpov, TO, IDACTION_LOOK_X, center );   
  30. bindAction( joystick,   ypov, TO, IDACTION_LOOK_Y, center );   
  31.  
  32.