Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Assets/Tests/InputSystem/Plugins/DualShockTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using UnityEngine.InputSystem;
using UnityEngine.InputSystem.LowLevel;
using UnityEngine.InputSystem.DualShock;
#if UNITY_EDITOR || UNITY_STANDALONE_OSX || UNITY_STANDALONE_WIN || UNITY_WSA
#if UNITY_EDITOR || UNITY_STANDALONE_OSX || UNITY_STANDALONE_WIN || UNITY_WSA || UNITY_STANDALONE_LINUX
using UnityEngine.InputSystem.DualShock.LowLevel;
#endif
using UnityEngine.InputSystem.Processors;
Expand All @@ -18,7 +18,7 @@

internal class DualShockTests : CoreTestsFixture
{
#if UNITY_EDITOR || UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || UNITY_WSA
#if UNITY_EDITOR || UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || UNITY_WSA || UNITY_STANDALONE_LINUX
public DualShockGamepad Devices_SupportsDualShockAsHID<TDevice, TState>(TState state)
where TDevice : DualShockGamepad
where TState : struct, IInputStateTypeInfo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR || UNITY_STANDALONE_OSX || UNITY_STANDALONE_WIN || UNITY_WSA || PACKAGE_DOCS_GENERATION
#if UNITY_EDITOR || UNITY_STANDALONE_OSX || UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_WSA || PACKAGE_DOCS_GENERATION
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static void Initialize()
// or none at all. E.g. when connected via Bluetooth on OSX, the DualShock will
// not return anything from IOHIDDevice_GetProduct() and IOHIDevice_GetManufacturer()
// even though it will report the expected results when plugged in via USB.
#if UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || UNITY_WSA || UNITY_EDITOR
#if UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || UNITY_WSA || UNITY_EDITOR || UNITY_STANDALONE_LINUX
InputSystem.RegisterLayout<DualSenseGamepadHID>(
matches: new InputDeviceMatcher()
.WithInterface("HID")
Expand Down
Loading