home *** CD-ROM | disk | FTP | other *** search
/ Hacker 9 / HACKER09.ISO / Games / StarSiege.exe / Starsiege / KeyMaps / Joystick.cs < prev    next >
Text File  |  1998-07-21  |  2KB  |  35 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. # Add generic joystick support
  14. #
  15. editActionMap( Herc );
  16.  
  17. bindAction( joystick, make, button0, TO, IDACTION_FIRE, 1.0 );
  18. bindAction( joystick, break, button0, TO, IDACTION_FIRE, 0.0 );
  19. bindAction( joystick, make, button1, TO, IDACTION_TARGET_SELECTED );
  20. bindAction( joystick, make, button2, TO, IDACTION_WEAPON_MODE_SELECT, 1.0 );
  21. bindAction( joystick, make, button3, TO, IDACTION_CAMOUFLAGE );
  22. bindAction( joystick, make, button4, TO, IDACTION_WEAPON_ADJ, -1.0 );
  23. bindAction( joystick, make, button5, TO, IDACTION_WEAPON_ADJ, "+1.0" );
  24. bindAction( joystick, make, button7, TO, IDACTION_SHIELD_TRACK );
  25. bindAction( joystick, make, button6, TO, IDACTION_CROUCH, 1.0 );
  26. bindAction( joystick, break, button6, TO, IDACTION_CROUCH, 0.0 );
  27.  
  28. bindAction( joystick, xaxis, TO, IDACTION_YAW, deadzone, 0.1, center, square );
  29. bindAction( joystick, yaxis, TO, IDACTION_SPEED, deadzone, 0.1, center, square );
  30. bindAction( joystick, rzaxis, TO, IDACTION_SHIELD_FOCUS_ADJ, deadzone, 0.1, center, square );
  31. bindAction( joystick, zaxis, TO, IDACTION_SPEED, deadzone, 0.1, center, square );
  32. bindAction( joystick, xpov, TO, IDACTION_LOOK_X,center );
  33. bindAction( joystick, ypov, TO, IDACTION_LOOK_Y, center );
  34.  
  35.