use name instead of joypad_name

This commit is contained in:
bparker06 2017-01-15 23:04:56 -05:00 committed by GitHub
parent 666534cc74
commit b5403da862

View File

@ -185,11 +185,11 @@ static void gfx_ctx_d3d_input_driver(void *data,
const input_driver_t **input, void **input_data)
{
#ifdef _XBOX
void *xinput = input_xinput.init(joypad_name);
void *xinput = input_xinput.init(name);
*input = xinput ? (const input_driver_t*)&input_xinput : NULL;
*input_data = xinput;
#else
dinput = input_dinput.init(joypad_name);
dinput = input_dinput.init(name);
*input = dinput ? &input_dinput : NULL;
*input_data = dinput;
#endif