xboxlive_pad_count_for_user


Description

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.


Syntax:

xboxlive_pad_count_for_user(user_id, slot);

Argument Description
user_id The user ID (a pointer) to check


Returns:

Integer


Example:

global.slots[0] = xboxlive_pad_count_for_user(user_id[0])

The above code stores the number of pads associated with the given user ID pointer.