mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Minor bugfixes : disable Refresh list and Load wii menu when game is running and fix silly init of njoy's rumble
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2973 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -82,16 +82,8 @@ void Pad_Use_Rumble(u8 _numPAD)//, SPADStatus* _pPADStatus)
|
||||
|
||||
if (PadMapping[_numPAD].rumble) {
|
||||
if (!g_Rumble) {
|
||||
|
||||
HWND rumble_hWnd = GetParent(m_hWnd);
|
||||
HWND TopLevel = GetParent(rumble_hWnd);
|
||||
|
||||
// Support both rendering to main window and not.
|
||||
if (GetForegroundWindow() == TopLevel)
|
||||
rumble_hWnd = TopLevel;
|
||||
if (GetForegroundWindow() == m_hWnd)
|
||||
rumble_hWnd = m_hWnd;
|
||||
if (FAILED(InitRumble(rumble_hWnd)))
|
||||
// GetForegroundWindow() always sends the good HWND
|
||||
if (FAILED(InitRumble(GetForegroundWindow())))
|
||||
PanicAlert("Could not initialize Rumble!");
|
||||
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user