Project

General

Profile

Actions

Emulator Issues #100

closed

PAD_Initialize does not return the proper window handle

Added by laurence.muller almost 16 years ago.

Status:
Fixed
Priority:
Normal
% Done:

0%

Operating system:
Windows
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Description in rev r126
http://code.google.com/p/dolphin-emu/source/detail?r=126

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 (in nJoy) is, let the game start and create a
window (and a hWnd). After that I set the CooperativeLevel.

Actions

Also available in: Atom PDF