Force Feedback for Allegro 4.2
==============================

Since Allegro 4.2 already has a direct input joystick driver, the force
feedback installation instructions by Marcello no longer works cleanly.  I've
hacked up his old code to use the new drivers.

DirectJoy can be found at: http://www.cellosoft.com/

David


Installing
----------
As before, you will need to hack your copy of Allegro.

* Copy diutil.c, diutil.h and winff.c into allegro/src/win/.

* Open allegro/src/win/wjoydx.c:

  Replace `DISCL_NONEXCLUSIVE' with `DISCL_EXCLUSIVE'.
  Change `DIEDFL_ATTACHEDONLY' to `DIEDFL_ATTACHEDONLY | DIEDFL_FORCEFEEDBACK'.
  Append `#include "winff.c"' to the end of the file.

* Copy winff.h into allegro/include/allegro/platform/.

* Append `#include "winff.h"' to the end of 
  allegro/include/allegro/platform/alwin.h.

* Open up allegro/makefile.lst and look for the ALLEGRO_SRC_WIN_FILES
  listing.  Add the following line:

	src/win/diutil.c \

  After the `src/win/wjoyw32.c' line is fine.

* Now just build Allegro as usual.  For a statically linked version, run:

  SET STATICLINK=1
  make depend
  make
