
DXDZFIX - Fixes the DirectX 5.0 joystick deadzone default.

(c) 1998  Chris Roehrig <croehrig@House.ORG>

This program and source is freely distributable freeware.   Enjoy.


The joystick deadzone is the area in the center where the joystick doesn't
respond.  DirectX has its own notion of a deadzone (in DINPUT.DLL), and 
Microsoft has hardcoded the default to 5% of its full range.   

Some DirectX games that use DirectInput (e.g. EA's Need For Speed II SE) 
don't provide an option to set the deadzone and use the default.   This is
really annoying for those of us that don't want to use our expensive analog 
controllers as PlayStation gamepads :-)

This program patches the DINPUT.DLL to change the default deadzone setting.
It will affect all games that use DirectInput.   

It has only been tested with the DirectX version 5.0.  
You can check your version from the DirectX Setup panel (under Control
Panel, Add/Remove Programs), and/or check the size of DINPUT.DLL 
    DINPUT.DLL, 175,616 bytes
    DirectInput 4.05.00.0155  

It should be run from a DOS console window.    

Usage: DXDZFIX 0 <C:\WINDOWS\SYSTEM\DINPUT.DLL >DINPUT.NEW
       COPY DINPUT.NEW C:\WINDOWS\SYSTEM\DINPUT.DLL

Note: DXDZFIX 1  will set the deadzone to 1 percent, etc..

You probably want to save your original DINPUT.DLL first.


DISCLAIMER:
I make no guarantees about this program and I'm not liable for anything
that happens to you or anyone else as a result of you or anyone else using
it.

Source is included.
The program was compiled using VC++ 5.0, but should compile on any ANSI C
compiler.   I did the original patch on a NeXTstation running BSD Unix.
