Skip to content

Commit 7f1859c

Browse files
HIDAPI for Desktop Linux
1 parent 0eb0e77 commit 7f1859c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Assets/Tests/InputSystem/Plugins/DualShockTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using UnityEngine.InputSystem;
22
using UnityEngine.InputSystem.LowLevel;
33
using UnityEngine.InputSystem.DualShock;
4-
#if UNITY_EDITOR || UNITY_STANDALONE_OSX || UNITY_STANDALONE_WIN || UNITY_WSA
4+
#if UNITY_EDITOR || UNITY_STANDALONE_OSX || UNITY_STANDALONE_WIN || UNITY_WSA || UNITY_STANDALONE_LINUX
55
using UnityEngine.InputSystem.DualShock.LowLevel;
66
#endif
77
using UnityEngine.InputSystem.Processors;
@@ -18,7 +18,7 @@
1818

1919
internal class DualShockTests : CoreTestsFixture
2020
{
21-
#if UNITY_EDITOR || UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || UNITY_WSA
21+
#if UNITY_EDITOR || UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || UNITY_WSA || UNITY_STANDALONE_LINUX
2222
public DualShockGamepad Devices_SupportsDualShockAsHID<TDevice, TState>(TState state)
2323
where TDevice : DualShockGamepad
2424
where TState : struct, IInputStateTypeInfo

Packages/com.unity.inputsystem/InputSystem/Plugins/DualShock/DualShockGamepadHID.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_EDITOR || UNITY_STANDALONE_OSX || UNITY_STANDALONE_WIN || UNITY_WSA || PACKAGE_DOCS_GENERATION
1+
#if UNITY_EDITOR || UNITY_STANDALONE_OSX || UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_WSA || PACKAGE_DOCS_GENERATION
22
using System;
33
using System.Runtime.CompilerServices;
44
using System.Runtime.InteropServices;

Packages/com.unity.inputsystem/InputSystem/Plugins/DualShock/DualShockSupport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static void Initialize()
2626
// or none at all. E.g. when connected via Bluetooth on OSX, the DualShock will
2727
// not return anything from IOHIDDevice_GetProduct() and IOHIDevice_GetManufacturer()
2828
// even though it will report the expected results when plugged in via USB.
29-
#if UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || UNITY_WSA || UNITY_EDITOR
29+
#if UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || UNITY_WSA || UNITY_EDITOR || UNITY_STANDALONE_LINUX
3030
InputSystem.RegisterLayout<DualSenseGamepadHID>(
3131
matches: new InputDeviceMatcher()
3232
.WithInterface("HID")

0 commit comments

Comments
 (0)