dolphin/Source/Plugins/Plugin_nJoy_SDL/Src
Laurence Muller bcaa0d1d86 nJoy:
- Added some kind of rumble support (windows only, using direct input).
- Only usable for player one.
- Not customizable, fixed rumble strength.
- Due to some Dolphin bugs you need to initialize rumble support manually.

How to use:
- Disable the 'render to main window' in the video plugin (opengl or d3d).
- Start the game and wait a few seconds.
- When the game is running, press the 'half press' button once.
- Rumble support should now be enabled (if your joypad supports it).
- Confirmed to work with Crazy Taxi.

Dolphin bug:
When void PAD_Initialize(SPADInitialize _PADInitialize) is called, the render window does not excist yet. Therefor the value _PADInitialize.hWnd is incorrect.

In order to initalize rumble support, it is required to set the CooperativeLevel to "DISCL_EXCLUSIVE | DISCL_FOREGROUND". But without a proper hWnd this will fail.
So the trick I used here is, let the game start and create a window (and a hWnd). After that I set the CooperativeLevel.



git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@126 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-01 23:38:53 +00:00
..
GUI nJoy: GUI fixes 2008-07-30 23:33:37 +00:00
config.cpp nJoy: GUI update 2008-07-29 22:26:42 +00:00
config.h nJoy: GUI update 2008-07-29 22:26:42 +00:00
nJoy.cpp nJoy: 2008-08-01 23:38:53 +00:00
nJoy.h nJoy: 2008-08-01 23:38:53 +00:00
SConscript Mac plugin is now in mac/Plugins directory 2008-07-31 08:38:13 +00:00