(DInput) Update

This commit is contained in:
twinaphex 2015-04-08 02:02:10 +02:00
parent 8cc8f855e1
commit ce6401f327
2 changed files with 6 additions and 2 deletions

View File

@ -73,7 +73,7 @@ struct dinput_input
struct pointer_status pointer_head; /* dummy head for easier iteration */
};
static void dinput_destroy_context(void)
void dinput_destroy_context(void)
{
if (!g_dinput_ctx)
return;

View File

@ -38,7 +38,6 @@ struct dinput_joypad
static struct dinput_joypad g_pads[MAX_USERS];
static unsigned g_joypad_cnt;
static unsigned g_last_xinput_pad_idx;
LPDIRECTINPUT8 g_dinput_ctx;
static const GUID common_xinput_guids[] = {
{MAKELONG(0x28DE, 0x11FF),0x0000,0x0000,{0x00,0x00,0x50,0x49,0x44,0x56,0x49,0x44}}, /* Valve streaming pad */
@ -46,6 +45,11 @@ static const GUID common_xinput_guids[] = {
{MAKELONG(0x045E, 0x028E),0x0000,0x0000,{0x00,0x00,0x50,0x49,0x44,0x56,0x49,0x44}} /* wireless 360 pad */
};
/* forward declarations */
void dinput_destroy_context(void);
bool g_xinput_block_pads;
LPDIRECTINPUT8 g_dinput_ctx;
static void dinput_joypad_destroy(void)
{
unsigned i;