With this function you can find out how many pad "slots" are active for the current user (see xboxlive_pad_for_user() for further details).IMPORTANT! This function is only valid when exporting using the UWP target for the Xbox One and it requires you to have checked the Enable XBox Live option in the UWP Game Options.
Argument Description user_id The user ID (a pointer) to check
global.slots = xboxlive_pad_count_for_user(user_id)
The above code stores the number of pads associated with the given user ID pointer.