mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
(DInput) Update
This commit is contained in:
parent
8cc8f855e1
commit
ce6401f327
@ -73,7 +73,7 @@ struct dinput_input
|
|||||||
struct pointer_status pointer_head; /* dummy head for easier iteration */
|
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)
|
if (!g_dinput_ctx)
|
||||||
return;
|
return;
|
||||||
|
@ -38,7 +38,6 @@ struct dinput_joypad
|
|||||||
static struct dinput_joypad g_pads[MAX_USERS];
|
static struct dinput_joypad g_pads[MAX_USERS];
|
||||||
static unsigned g_joypad_cnt;
|
static unsigned g_joypad_cnt;
|
||||||
static unsigned g_last_xinput_pad_idx;
|
static unsigned g_last_xinput_pad_idx;
|
||||||
LPDIRECTINPUT8 g_dinput_ctx;
|
|
||||||
|
|
||||||
static const GUID common_xinput_guids[] = {
|
static const GUID common_xinput_guids[] = {
|
||||||
{MAKELONG(0x28DE, 0x11FF),0x0000,0x0000,{0x00,0x00,0x50,0x49,0x44,0x56,0x49,0x44}}, /* Valve streaming pad */
|
{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 */
|
{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)
|
static void dinput_joypad_destroy(void)
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user