+
+
+ {controller.bluetooth ? : }
+
+
+
+
+ {controller.name}
+
+ {
+ (controller.capacity > 0 || controller.status !== "unknown") &&
+
+ {
+ // only show battery capacity for non-MS vendors unless capacity is > 0 and over BT
+ // since we don't have the battery capacity yet for Xbox over USB
+ (controller.vendorId != 0x045E || (controller.capacity > 0 && controller.bluetooth)) &&
+ {controller.capacity}%
+ }
+
+
+
+
+ }
+