home *** CD-ROM | disk | FTP | other *** search
-
- # include tilt camera controls
- exec( "_tiltCamera.cs" );
-
- #------------------------------------------------------------------------------
- # include generic keyboard controls
- exec( "_defKeyboard.cs" );
-
-
- #------------------------------------------------------------------------------
- #
- # Add support from Microsoft Sidewinder Pro joystick
- #
- editActionMap( Herc );
-
- # Weapon controls
- bindAction( joystick, make, button7, TO, IDACTION_FIRE, 1.0 );
- bindAction( joystick, break, button7, TO, IDACTION_FIRE, 0.0 );
- bindAction( joystick, make, button6, TO, IDACTION_TARGET_SELECTED );
- bindAction( joystick, make, button9, TO, IDACTION_TARGET_CLOSEST_ENEMY );
- bindAction( joystick, make, button8, TO, IDACTION_WEAPON_MODE_SELECT);
-
- # Shield and system controls
- bindAction( joystick, make, button3, TO, IDACTION_CAMOUFLAGE );
- bindAction( joystick, make, button4, TO, IDACTION_REACTOR );
- bindAction( joystick, make, button1, TO, IDACTION_SHIELD );
- bindAction( joystick, make, button2, TO, IDACTION_CROUCH, 1.0 );
- bindAction( joystick, break, button2, TO, IDACTION_CROUCH, 0.0 );
-
- #Movement and view controls
- bindAction( joystick, xaxis, TO, IDACTION_YAW, deadzone, 0.1, center );
- bindAction( joystick, yaxis, TO, IDACTION_SPEED, deadzone, 0.1, center );
- #bindAction joystick zaxis TO IDACTION_SPEED deadzone 0.1 center square
- bindAction( joystick, xpov, TO, IDACTION_LOOK_X, square, center );
- bindAction( joystick, ypov, TO, IDACTION_LOOK_Y, square,center );
- bindAction( joystick, make, button0, TO, IDACTION_ZOOM_SET, 1.0 );
- bindAction( joystick, break, button0, TO, IDACTION_ZOOM_SET, 0.0 );
- bindAction( joystick, make, button5, TO, IDACTION_STOP );
-
-