File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff 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
1111Adding a highly requested new feature!
1212
Original file line number Diff line number Diff line change 33
44class JSlWrapperImpl : public JslWrapper
55{
6+ int _deviceCount = 0 ;
67public:
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
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ cmake --install ../build-jsm-win64-sdl/ --config Release --prefix ../install
1010
1111REM Zip both versions
1212Del /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
1616pause
You can’t perform that action at this time.
0 commit comments