Gamepad_get_battery_charge - hpgDesigns/hpg_projects GitHub Wiki

Description

Gets the remaining battery life of the given gamepad device and returns the result.

Parameters

Parameter Data Type Description
device integer The gamepad index, must be 0 through 3, 0 being player 1.

Return Values

returntype: Returns the amount of battery life left for the gamepad.

Example Call

// demonstrates checking if the battery is getting low and warning the player

NOTOC