File tree Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
6
6
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
7
8
+ ## [ 1.1.2] - 2023-08-10
9
+
10
+ ### Fixed
11
+
12
+ - Fixed a build error on Linux caused by Nintendo Switch Pro controller not being supported on Linux, for some reason.
13
+
8
14
## [ 1.1.1] - 2023-08-06
9
15
10
16
Original file line number Diff line number Diff line change 1
- using System . Linq ;
2
- using UnityEngine ;
3
- using UnityEngine . InputSystem ;
1
+ using UnityEngine . InputSystem ;
4
2
using UnityEngine . InputSystem . DualShock ;
5
- using UnityEngine . InputSystem . Switch ;
3
+ #if UNITY_EDITOR || UNITY_SWITCH || UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || UNITY_WSA
4
+ using UnityEngine . InputSystem . Switch ; // Switch Pro Controller is not supported on Linux.
5
+ #endif
6
6
7
7
namespace DartCore . Utilities
8
8
{
@@ -19,12 +19,17 @@ public static GamepadPlatform GetGamepadPlatform()
19
19
return gamepad switch
20
20
{
21
21
DualShockGamepad => GamepadPlatform . Playstation ,
22
- SwitchProControllerHID => GamepadPlatform . Nintendo ,
22
+ #if UNITY_EDITOR || UNITY_SWITCH || UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || UNITY_WSA
23
+ SwitchProControllerHID => GamepadPlatform . Nintendo , // Switch Pro Controller is not supported on Linux.
24
+ #endif
23
25
_ => GamepadPlatform . Xbox
24
26
} ;
25
27
}
26
28
}
27
29
30
+ /// <summary>
31
+ /// Switch Pro Controller is not supported on Linux for some reason.
32
+ /// </summary>
28
33
public enum GamepadPlatform
29
34
{
30
35
None = 0 ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " com.dartcore.utilities" ,
3
- "version" : " 1.1.1 " ,
3
+ "version" : " 1.1.2 " ,
4
4
"displayName" : " DartCore Utilities" ,
5
5
"description" : " This package contains methods to handle commonly required stuff." ,
6
6
"unity" : " 2018.1" ,
You can’t perform that action at this time.
0 commit comments