mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-20 16:28:41 +00:00
Updated rumble for nJoy, fixed a few glitches with half press button and deadzones too.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2840 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
e24e2db1a1
commit
b0852c1bef
10 changed files with 365 additions and 334 deletions
|
@ -33,15 +33,6 @@
|
|||
#ifndef __NJOY_h__
|
||||
#define __NJOY_h__
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Settings
|
||||
// ¯¯¯¯¯¯¯¯¯¯
|
||||
// Set this if you want to use the rumble 'hack' for controller one
|
||||
//#define USE_RUMBLE_DINPUT_HACK
|
||||
//////////////////////////
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Includes
|
||||
// ¯¯¯¯¯¯¯¯¯¯
|
||||
|
@ -71,13 +62,12 @@
|
|||
#define DIRECTINPUT_VERSION 0x0800
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
|
||||
#ifdef USE_RUMBLE_DINPUT_HACK
|
||||
#pragma comment(lib, "dxguid.lib")
|
||||
#pragma comment(lib, "dinput8.lib")
|
||||
#pragma comment(lib, "winmm.lib")
|
||||
#include <dinput.h>
|
||||
VOID FreeDirectInput(); // Needed in both nJoy.cpp and Rumble.cpp
|
||||
#endif
|
||||
#pragma comment(lib, "dxguid.lib")
|
||||
#pragma comment(lib, "dinput8.lib")
|
||||
#pragma comment(lib, "winmm.lib")
|
||||
#include <dinput.h>
|
||||
void FreeDirectInput(); // Needed in both nJoy.cpp and Rumble.cpp
|
||||
|
||||
#endif // _WIN32
|
||||
|
||||
#ifdef _WIN32
|
||||
|
@ -142,11 +132,10 @@ void DEBUG_INIT();
|
|||
void DEBUG_QUIT();
|
||||
bool IsFocus();
|
||||
bool ReloadDLL();
|
||||
#ifdef _WIN32
|
||||
HRESULT InitRumble(HWND hWnd);
|
||||
#endif
|
||||
|
||||
void Pad_Use_Rumble(u8 _numPAD, SPADStatus* _pPADStatus); // Rumble
|
||||
|
||||
//void SaveConfig();
|
||||
//void LoadConfig();
|
||||
////////////////////////////////
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue