mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
[GX] own input driver, prevent wiimote disconnecting on game load
This commit is contained in:
parent
8d7bbdce95
commit
0e28c455f3
@ -703,6 +703,10 @@ static void gx_input_set_keybinds(void *data, unsigned device, unsigned port,
|
||||
static void *gx_input_init(void)
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
if (driver.input_data)
|
||||
return driver.input_data;
|
||||
|
||||
gx_input_t *gx = (gx_input_t*)calloc(1, sizeof(*gx));
|
||||
if (!gx)
|
||||
return NULL;
|
||||
@ -726,6 +730,7 @@ static void *gx_input_init(void)
|
||||
ss_initialize(&dev[i]);
|
||||
#endif
|
||||
|
||||
driver.input_data_own = true;
|
||||
return gx;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user