Ejemplo n.º 1
0
        public static string GetBatteryType(PlayerIndex playerIndex)
        {
            string strReturn = "";

            XInputBatteryInformation gamepad = new XInputBatteryInformation();

            Imports.XInputGetBatteryInformation((int)playerIndex, (byte)0, ref gamepad);

            strReturn = gamepad.ToString();
            return(strReturn);
        }
Ejemplo n.º 2
0
 public static extern int XInputGetBatteryInformation(
       int dwUserIndex,        // Index of the gamer associated with the device
       byte devType,            // Which device on this user index
       ref XInputBatteryInformation pBatteryInformation // Contains the level and types of batteries
 );
Ejemplo n.º 3
0
        public static string GetBatteryType(PlayerIndex playerIndex)
        {
            string strReturn = "";

            XInputBatteryInformation gamepad = new XInputBatteryInformation();
            Imports.XInputGetBatteryInformation((int)playerIndex, (byte)0, ref gamepad);

            strReturn = gamepad.ToString();
            return strReturn;
        }
Ejemplo n.º 4
0
 public static extern int XInputGetBatteryInformation
 (
     int dwUserIndex,                                 // Index of the gamer associated with the device
     byte devType,                                    // Which device on this user index
     ref XInputBatteryInformation pBatteryInformation // Contains the level and types of batteries
 );