home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Classic Fond 54
/
ClassicFond54.iso
/
games
/
stars.rar
/
keyMaps
/
Key_Mouse_DigiJoy.cs
< prev
next >
Wrap
Text File
|
1999-02-19
|
3KB
|
62 lines
#Modified 10/23/98
###############################################################################
#
# NOTE: This key binding script may not work with analog joysticks
# if their readings fluctuate too much. If this is not working with
# your joystick comment out the lines noted below.
#
###############################################################################
#------------------------------------------------------------------------------
# include generic game actions
#------------------------------------------------------------------------------
exec( "_gameActions.cs" );
#------------------------------------------------------------------------------
# include generic camera controls
#------------------------------------------------------------------------------
exec( "_defCamera.cs" );
#------------------------------------------------------------------------------
# include generic keyboard controls
#------------------------------------------------------------------------------
exec( "_defKeyboard.cs" );
#------------------------------------------------------------------------------
# Mouse Controls
#------------------------------------------------------------------------------
editActionMap( Herc );
bindAction( mouse0, make, button0, TO, IDACTION_FIRE, 1 );
bindAction( mouse0, break, button0, TO, IDACTION_FIRE, 0 );
bindAction( mouse0, break, button1, TO, IDACTION_TARGET_SELECTED );
bindAction( mouse0, break, button2, TO, IDACTION_TARGET_CLOSEST_ENEMY );
bindAction( mouse0, xaxis, TO, IDACTION_LOOK_X, scale, 0.5, flip );
bindAction( mouse0, yaxis, TO, IDACTION_LOOK_Y, scale, 0.5, flip );
#------------------------------------------------------------------------------
# Joystick Controls
#------------------------------------------------------------------------------
bindAction( joystick, make, button0, TO, IDACTION_FIRE, 1 );
bindAction( joystick, break, button0, TO, IDACTION_FIRE, 0 );
bindAction( joystick, make, button1, TO, IDACTION_TARGET_SELECTED );
bindAction( joystick, make, button2, TO, IDACTION_WEAPON_MODE_SELECT );
bindAction( joystick, make, button3, TO, IDACTION_WEAPON_GROUP_ADJ, 1 );
bindAction( joystick, make, button4, TO, IDACTION_REVERSE_THROTTLE );
bindAction( joystick, make, button5, TO, IDACTION_SENSOR_MODE_TOGGLE );
bindAction( joystick, make, button6, TO, IDACTION_REACTOR );
bindAction( joystick, make, button7, TO, IDACTION_SHIELD );
bindAction( joystick, xaxis, TO, IDACTION_YAW, deadzone, 0.1, center, square );
bindAction( joystick, yaxis, TO, IDACTION_SPEED, deadzone, 0.1, center, square );
bindAction( joystick, zaxis, TO, IDACTION_ZOOM_ADJ, deadzone, 0.1, center );
#------comment these 2 lines out if you have problem with your analog joystick
bindAction( joystick, xpov, TO, IDACTION_LOOK_X, center );
bindAction( joystick, ypov, TO, IDACTION_LOOK_Y, center );