Skip to content

Commit 95d9fa1

Browse files
committed
Release v3.5.5
1 parent 6aa4233 commit 95d9fa1

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This is a summary of new features and bugfixes. Read the README to learn how to
66
## Known issues
77
* SDL always merges joycons behind the scene into a single controller. JSM is not able to split them. Use legacy-JSL version to use this feature.
88

9-
## 3.5.4
9+
## 3.5.5
1010

1111
Adding a highly requested new feature!
1212

JoyShockMapper/src/JslWrapper.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,20 @@
33

44
class JSlWrapperImpl : public JslWrapper
55
{
6+
int _deviceCount = 0;
67
public:
78
int ConnectDevices() override
89
{
9-
return JslConnectDevices();
10+
_deviceCount = JslConnectDevices();
11+
return _deviceCount;
12+
}
13+
14+
int GetDeviceCount() override
15+
{
16+
// I believe this method is expected to update the current count without changing any objects.
17+
// This feature of SDL2 is not available in JSL, so this implementation makes the auto reconnect unusable
18+
// until JSL is updated with a similar feature.
19+
return _deviceCount;
1020
}
1121

1222
int GetConnectedDeviceHandles(int* deviceHandleArray, int size) override

script/create_windows_release_archives.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ cmake --install ../build-jsm-win64-sdl/ --config Release --prefix ../install
1010

1111
REM Zip both versions
1212
Del /Q ..\JoyShockMapper_x64.zip ..\JoyShockMapper_x64_legacy.zip
13-
PowerShell -command "Compress-Archive -Path ../install/JoyShockMapper_x64 -DestinationPath ../JoyShockMapper_x64.zip"
14-
PowerShell -command "Compress-Archive -Path ../install/JoyShockMapper_x64_legacy -DestinationPath ../JoyShockMapper_x64_legacy.zip"
13+
PowerShell -command "Compress-Archive -Path ../install/JoyShockMapper_SDL2_x64 -DestinationPath ../JoyShockMapper_x64.zip"
14+
PowerShell -command "Compress-Archive -Path ../install/JoyShockMapper_JSL_x64_legacy -DestinationPath ../JoyShockMapper_x64_legacy.zip"
1515

1616
pause

0 commit comments

Comments
 (0)