mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
dinput: add missing function parameter
This commit is contained in:
parent
300dbdf883
commit
f5ea4a0c65
@ -63,7 +63,7 @@ extern bool g_xinput_block_pads;
|
||||
extern int g_xinput_pad_indexes[MAX_USERS];
|
||||
extern LPDIRECTINPUT8 g_dinput_ctx;
|
||||
|
||||
bool dinput_joypad_get_vidpid_from_xinput_index(int index, int *vid, int *pid)
|
||||
bool dinput_joypad_get_vidpid_from_xinput_index(int index, int *vid, int *pid, int *dinput_index)
|
||||
{
|
||||
int i;
|
||||
|
||||
@ -79,6 +79,9 @@ bool dinput_joypad_get_vidpid_from_xinput_index(int index, int *vid, int *pid)
|
||||
if (pid)
|
||||
*pid = g_pads[i].pid;
|
||||
|
||||
if (dinput_index)
|
||||
*dinput_index = i;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user