File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,13 @@ 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.3] - 2024-08-15
9
+
10
+ ### Changed
11
+
12
+ - Gamepad platform now works properly with Nintendo Switch.
13
+
14
+
8
15
## [ 1.1.2] - 2023-08-10
9
16
10
17
### Fixed
Original file line number Diff line number Diff line change @@ -13,13 +13,17 @@ public static class InputUtilities
13
13
14
14
public static GamepadPlatform GetGamepadPlatform ( )
15
15
{
16
+ #if UNITY_SWITCH
17
+ return GamepadPlatform . Nintendo ;
18
+ #endif
19
+
16
20
if ( ! IsUsingGamepad ( ) ) return GamepadPlatform . None ;
17
21
18
22
var gamepad = GetCurrentGamepad ( ) ;
19
23
return gamepad switch
20
24
{
21
25
DualShockGamepad => GamepadPlatform . Playstation ,
22
- #if UNITY_EDITOR || UNITY_SWITCH || UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || UNITY_WSA
26
+ #if UNITY_EDITOR || UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || UNITY_WSA
23
27
SwitchProControllerHID => GamepadPlatform . Nintendo , // Switch Pro Controller is not supported on Linux.
24
28
#endif
25
29
_ => GamepadPlatform . Xbox
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " com.dartcore.utilities" ,
3
- "version" : " 1.1.2 " ,
3
+ "version" : " 1.1.3 " ,
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