mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +00:00
add settings for network gamepads for each user
This commit is contained in:
parent
07291710ef
commit
06a06fee94
@ -81,8 +81,14 @@ static void event_init_remote(void)
|
||||
driver_t *driver = driver_get_ptr();
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
if (!(driver->remote = rarch_remote_new(55400,1)))
|
||||
RARCH_ERR("Failed to initialize remote gamepad interface.\n");
|
||||
for(int i=0; i < settings->input.max_users; i++)
|
||||
{
|
||||
if (settings->network_remote_enable[i])
|
||||
{
|
||||
if (!(driver->remote = rarch_remote_new(55400 + i,i)))
|
||||
RARCH_ERR("Failed to initialize remote gamepad interface.\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -347,6 +347,8 @@ typedef struct settings
|
||||
bool network_cmd_enable;
|
||||
unsigned network_cmd_port;
|
||||
bool stdin_cmd_enable;
|
||||
bool network_remote_enable[MAX_USERS];
|
||||
unsigned network_remote_base_port;
|
||||
bool debug_panel_enable;
|
||||
|
||||
char core_assets_directory[PATH_MAX_LENGTH];
|
||||
|
Loading…
Reference in New Issue
Block a user