Skip to content

Commit 0607948

Browse files
committed
small fix
1 parent 7336bf5 commit 0607948

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

Packages/com.unity.inputsystem/InputSystem/Plugins/Android/AndroidGameController.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,16 @@ public static AndroidDeviceCapabilities FromJson(string json)
133133

134134
public override string ToString()
135135
{
136+
var motionAxesString = motionAxes == null ? "<null>" : string.Join(",", motionAxes);
136137
var entries = new[]
137138
{
138-
$"deviceDescriptor: {deviceDescriptor}",
139-
$"productId: {productId}",
140-
$"vendorId: {vendorId}",
141-
$"isVirtual: {isVirtual}",
142-
$"motionAxes: {(motionAxes == null ? "<null>" : String.Join(",", motionAxes.Select(i => i.ToString()).ToArray()))}",
143-
$"inputSources: {inputSources}",
144-
$"vibratorCount: {vibratorCount}"
139+
$"deviceDescriptor = {deviceDescriptor}",
140+
$"productId = {productId}",
141+
$"vendorId = {vendorId}",
142+
$"isVirtual = {isVirtual}",
143+
$"motionAxes = {motionAxesString}",
144+
$"inputSources = {inputSources}",
145+
$"vibratorCount = {vibratorCount}"
145146
};
146147

147148
return string.Join(", ", entries);

0 commit comments

Comments
 (0)