// This is a config file for the Logitech CyberMan 2
// for use with the Sin demo.  The user is encouraged to tweak their
// settings to get maximum performance and enjoyment from the product.
//
// CM2SINDEMO.CFG
// Revision 0.3 --

// Axis Sensitivity:

// initialize joystick support
in_joystick 1
joy_advanced 1.0

// print joystick name
joy_name "Logitech CyberMan 2"

// First, we define the available axes:

// Jumping and crouching (+moveup and +movedown) are handled by the Z
// (up and down) axis of the CyberMan 2.  You can bind them to buttons
// and disable the Z axis (joy_advaxisz 0) if you want.

// 0 = Axis not used
// 1 = Forward/Backward
// 2 = Pitch (look up/down)
// 3 = Strafe left/right
// 4 = Turn left/right
// 5 = Move up/down (jump/crouch)

joy_advaxisx 3
joy_advaxisy 1
joy_advaxisz 5
joy_advaxisr 4
joy_advaxisu 2
joy_advaxisv 0

// Next, we define the sensitivities (response speeds) and thresholds 
// (dead zones) of the available axes:

// Sensitivities can (and probably should) be tweaked by the user - 
// note that some values are negative and some are positive - changing 
// negative values to positive (or vice versa) will reverse the 
// direction traveled by moving that axis - for example, changing 
// joy_yawsensitivity to 3 would make the character turn left when the 
// puck is turned to the right.  Changing joy_yawsensitivity to -4 
// will make turning the puck left and right turn the character 
// faster.  Adjust these in increments of .1 (or whatever) until you 
// like the response.
// The threshold settings are also adjustable, but these are the
// settings I've found most comfortable - particularly with the Z 
// (jump/crouch) axis.

joy_pitchsensitivity -1.0
joy_pitchthreshold 0.15
joy_yawsensitivity -3
joy_yawthreshold 0.0
joy_forwardsensitivity -1.0
joy_forwardthreshold 0.15
joy_upthreshold 0.5
joy_upsensitivity -1
joy_sidesensitivity 1.0
joy_sidethreshold 0.15
joy_advancedupdate

// Miscellaneous variables
crosshair 1
-mlook
lookspring 1

// Button Assignments:
// These can be changed.  Have a look at Sin's "CONFIG.CFG" for 
// the exact syntax of the commands, or type "CMDLIST" at the console
// and use the PGUP key to scroll through the list of commands.

bind "JOY1" "+attack"     // Top index finger button - Fire weapon
bind "JOY2" "weapnext"    // Top middle finger button - Next weapon
bind "JOY3" "centerview"  // Top ring finger button - Center view 
bind "JOY4" "+use"        // Bottom index finger button - Use item
			  // (open doors, push buttons...???)
bind "AUX5" "invuse"      // Bottom middle finger button - Use current 
			  // inventory item
bind "AUX6" "+mlook"      // Bottom ring finger button - turn on pitch
			  // axis for looking up and down until you let
			  // this button go
bind "AUX7" "invnext"     // Right thumb button
bind "AUX8" "invprev"     // Left thumb button

// Note - "+mlook" is not enabled as a default.  This is because the
// pitch axis is rather sensitive, and I found it somewhat difficult
// to use as an "on all the time" thing while testing this config (in 
// Quake 2.)

// To look up and down, you must (with the default config) hold down 
// button 6 while looking.  If you type "+mlook" at the console, free 
// aiming will be enabled all the time until you press button 6 again.
// If you want free look on all the time without ever being turned 
// off, bind "AUX6" to something else.  This config works best with 
// lookspring turned on (lookspring 1) but can be played without 
// lookspring as well

// Below is a list of different commands you can cut/paste to bind to 
// buttons
// "use Magnum"
// "use Shotgun"
// "use AssaultRifle"
// "use Chaingun"
// "use SpiderMine"
// "use RocketLauncher"
// "use PulseRifle"
// "use QuantumDestablizer"
// "+use"
// "use SniperRifle"
// "toggleviewmode"