add settings for network gamepads for each user

This commit is contained in:
radius 2015-11-26 15:16:28 -05:00
parent 07291710ef
commit 06a06fee94
2 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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];