Merge branch 'accurate' into portable
This commit is contained in:
commit
5d2bcb856b
1 changed files with 4 additions and 3 deletions
|
@ -29,14 +29,15 @@ BOOL InitDirectInput(void)
|
||||||
{
|
{
|
||||||
SDL_InitSubSystem(SDL_INIT_JOYSTICK);
|
SDL_InitSubSystem(SDL_INIT_JOYSTICK);
|
||||||
|
|
||||||
if (!HookAllDirectInputDevices())
|
if (!HookDirectInputDevice())
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The original name for this function and its variables are unknown
|
// The original name for this function and its variables are unknown.
|
||||||
BOOL HookAllDirectInputDevices(void)
|
// This function finds and hooks the first available DirectInput device (or SDL Joystick, in this case).
|
||||||
|
BOOL HookDirectInputDevice(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue