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

  1. #Modified 10/25/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. #
  19. # Add generic joystick support
  20. #
  21. #------------------------------------------------------------------------------
  22. editActionMap( Herc );
  23.  
  24. # Joystick Controls           
  25. bindAction( joystick, make,  button0, TO, IDACTION_FIRE, 1 );   
  26. bindAction( joystick, break,  button0, TO, IDACTION_FIRE, 0 );   
  27. bindAction( joystick, make,  button1, TO, IDACTION_TARGET_SELECTED );    
  28. bindAction( joystick, make,  button2, TO, IDACTION_WEAPON_MODE_SELECT );    
  29. bindAction( joystick, make,  button3, TO, IDACTION_WEAPON_GROUP_ADJ, 1 );    
  30. bindAction( joystick, make,  button4, TO, IDACTION_REVERSE_THROTTLE );   
  31. bindAction( joystick, make,  button5, TO, IDACTION_SENSOR_MODE_TOGGLE );    
  32. bindAction( joystick, make,  button6, TO, IDACTION_REACTOR );    
  33. bindAction( joystick, make,  button7, TO, IDACTION_SHIELD );    
  34.            
  35. bindAction( joystick,   xaxis, TO, IDACTION_YAW, deadzone, 0.1, center, square );
  36. bindAction( joystick,   yaxis, TO, IDACTION_SPEED, deadzone, 0.1, center, square );        
  37. bindAction( joystick,   zaxis, TO, IDACTION_ZOOM_ADJ, deadzone, 0.1, center ); 
  38.            
  39. # comment these 2 lines out if you have problem with your analog joystick           
  40. bindAction( joystick,   xpov, TO, IDACTION_LOOK_X, center );   
  41. bindAction( joystick,   ypov, TO, IDACTION_LOOK_Y, center );   
  42.  
  43.